aboutsummaryrefslogtreecommitdiffstats
path: root/agenda/Makefile
diff options
context:
space:
mode:
authorGustav Eek <gustav.eek@etraveli.com>2016-12-16 18:50:17 +0100
committerGustav Eek <gustav.eek@fripost.org>2018-04-30 17:09:32 +0200
commitb1840ae65c803ed48a522065aa5cdcbc80525e59 (patch)
tree522de7094a7c40aea306a4212257d2c2dbe05b85 /agenda/Makefile
parented05e322a800117763c4ffb88193bf7bac8f0d94 (diff)
Board meeting standing agenda updated
The agenda *board-meeting-agenda.tex* is more or less fully rewritten. Also the *Makefile* of interest is updated.
Diffstat (limited to 'agenda/Makefile')
-rw-r--r--agenda/Makefile31
1 files changed, 10 insertions, 21 deletions
diff --git a/agenda/Makefile b/agenda/Makefile
index 5cbaf8b..a518a72 100644
--- a/agenda/Makefile
+++ b/agenda/Makefile
@@ -2,31 +2,20 @@
#
# Gustav Eek 2011
-noarg:
- echo -e '\nThis script do not run without arguments. Run for example:\n\n make 2011-02-13-board-notes.pdf\n make all\n'
+all: \
+board-meeting-agenda.pdf \
+yearly-meeting-agenda.pdf \
-bma = board-meeting-agenda
-
-all: $(bma).pdf
-
-$(bma).pdf: $(bma).tex ../preamble/preamble.tex
- pdflatex $(bma).tex
+%.pdf: %.tex ../preamble/preamble.tex
latex_count=5 ; \
- while egrep -s 'Rerun (LaTeX|to get cross-references right)' $(bma).log && [ $$latex_count -gt 0 ] ;\
- do echo "Rerunning latex...." ; pdflatex $(bma).tex; latex_count=`expr $$latex_count - 1`; done
+ jobname=$(basename $@) ;\
+ pdflatex -jobname="$$jobname" $< ;\
+ while egrep -s 'Rerun (LaTeX|to get cross-references right)' $$jobname.log && [ $$latex_count -gt 0 ] ;\
+ do echo "Rerunning latex...." ; pdflatex $<; latex_count=`expr $$latex_count - 1`; done
send: # sends to fripost.org for publication
- umask 022
- rsync -ruvp --chmod=Dugo+rx,Fugo+r *.pdf fripost@fripost.org:fripost.org/minutes/
-
-# Debuging and testing
-send-test: test.d/test
- umask 022
- rsync -ruvp --chmod=Dugo+rx,Fugo+r rsync -ruvp test.d/ fripost@fripost.org:fripost.org/minutes/
-test.d/test: test.d
- echo This is the test file for fripost-web. > test.d/test
-test.d:
- mkdir test.d
+ umask 022 ;\
+ rsync -ruvp --chmod=Dugo+rx,Fugo+r *.pdf www.fripost.org:/var/www/fripost.org/minutes
clean:
rm *.aux *.bbl *.dvi *.log *.nav *.out *.snm *.toc *~