From 0518fc511dc3e1fd1f8d617a67ab4bd49a1af730 Mon Sep 17 00:00:00 2001 From: Michael Kohlhase Date: Tue, 13 Jan 2015 11:12:51 +0100 Subject: [PATCH] better production process --- dfg/examples/simple-proposal/Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/dfg/examples/simple-proposal/Makefile b/dfg/examples/simple-proposal/Makefile index 1965593..3d5e2b0 100644 --- a/dfg/examples/simple-proposal/Makefile +++ b/dfg/examples/simple-proposal/Makefile @@ -1,3 +1,9 @@ +########################################################################### +# Automating proposal management by make. +# The participants work on proposal.tex in "draft" mode, which gives a lot +# of information to the developers. Variants submit.tex and public.tex are +# used to prepare official versions (hiding development/private info). +########################################################################### # possibly customize the following variables to your setting PROPOSAL = proposal.tex # the proposal BIB = ../lib/dummy.bib # bibTeX databases @@ -11,7 +17,7 @@ PDATA = $(PROPOSAL:%.tex=%.pdata) # the proposal project data SRC = $(filter-out $(TARGET),$(shell ls *.tex)) # included files PDFLATEX = pdflatex -interaction batchmode -file-line-error BBL.base = 1 -BBL = proposal.bbl $(BBL.base:%=proposal%-blx.bbl) +BBL = $(PROPOSAL:%.tex=%.bbl) $(BBL.base:%=$(PROPOSAL:%.tex=%)%-blx.bbl) PROPCLS.dir = $(PROP.dir)/base PROPETC.dir = $(PROP.dir)/etc DFGPROPCLS.dir = $(PROP.dir)/dfg @@ -24,6 +30,12 @@ PROPCLS = $(PROPCLS.clssty:%=$(PROPCLS.dir)/%) $(DFGPROPCLS.clssty:%=$(DFGPROPCL all: $(TARGET.pdf) +submit: + $(MAKE) -w PROPOSAL=final.tex all + +public: + $(MAKE) -w PROPOSAL=public.tex all + cd: # make cd will prepare CD for burning mkdir CD;make $(TARGET.pdf); cp $(TARGET.pdf) CD