annotate handout/makefile @ 68:38cfbe3ed6ab

added the handout (... already weeks old)
author markus schnalke <meillo@marmaro.de>
date Thu, 10 Apr 2014 07:04:47 +0200
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
68
38cfbe3ed6ab added the handout (... already weeks old)
markus schnalke <meillo@marmaro.de>
parents:
diff changeset
1 NAME = ref1-handout
38cfbe3ed6ab added the handout (... already weeks old)
markus schnalke <meillo@marmaro.de>
parents:
diff changeset
2 CHAPS = ../style handout.roff
38cfbe3ed6ab added the handout (... already weeks old)
markus schnalke <meillo@marmaro.de>
parents:
diff changeset
3 BIB = bib
38cfbe3ed6ab added the handout (... already weeks old)
markus schnalke <meillo@marmaro.de>
parents:
diff changeset
4 PDFFLAGS = -sPAPERSIZE=a4 -dPDFSETTINGS=/prepress
38cfbe3ed6ab added the handout (... already weeks old)
markus schnalke <meillo@marmaro.de>
parents:
diff changeset
5 REFER = refer -n -p $(BIB) -e -P -sLAD -a # -l,2 -k
38cfbe3ed6ab added the handout (... already weeks old)
markus schnalke <meillo@marmaro.de>
parents:
diff changeset
6
38cfbe3ed6ab added the handout (... already weeks old)
markus schnalke <meillo@marmaro.de>
parents:
diff changeset
7 all: $(NAME).ps
38cfbe3ed6ab added the handout (... already weeks old)
markus schnalke <meillo@marmaro.de>
parents:
diff changeset
8
38cfbe3ed6ab added the handout (... already weeks old)
markus schnalke <meillo@marmaro.de>
parents:
diff changeset
9 $(NAME).ps: $(CHAPS) makefile $(BIB)
38cfbe3ed6ab added the handout (... already weeks old)
markus schnalke <meillo@marmaro.de>
parents:
diff changeset
10 export TROFFONTS=../fonts;\
38cfbe3ed6ab added the handout (... already weeks old)
markus schnalke <meillo@marmaro.de>
parents:
diff changeset
11 soelim $(CHAPS) | $(REFER) | \
38cfbe3ed6ab added the handout (... already weeks old)
markus schnalke <meillo@marmaro.de>
parents:
diff changeset
12 troff -Tps -ms 2>err.ig | dpost >$@
38cfbe3ed6ab added the handout (... already weeks old)
markus schnalke <meillo@marmaro.de>
parents:
diff changeset
13
38cfbe3ed6ab added the handout (... already weeks old)
markus schnalke <meillo@marmaro.de>
parents:
diff changeset
14 pdf: $(NAME).pdf
38cfbe3ed6ab added the handout (... already weeks old)
markus schnalke <meillo@marmaro.de>
parents:
diff changeset
15 $(NAME).pdf: $(NAME).ps
38cfbe3ed6ab added the handout (... already weeks old)
markus schnalke <meillo@marmaro.de>
parents:
diff changeset
16 ps2pdf $(PDFFLAGS) $(NAME).ps 2>/dev/null
38cfbe3ed6ab added the handout (... already weeks old)
markus schnalke <meillo@marmaro.de>
parents:
diff changeset
17
38cfbe3ed6ab added the handout (... already weeks old)
markus schnalke <meillo@marmaro.de>
parents:
diff changeset
18 clean:
38cfbe3ed6ab added the handout (... already weeks old)
markus schnalke <meillo@marmaro.de>
parents:
diff changeset
19 rm -f $(NAME).ps $(NAME).pdf book.ps book.pdf
38cfbe3ed6ab added the handout (... already weeks old)
markus schnalke <meillo@marmaro.de>
parents:
diff changeset
20 rm -rf refs
38cfbe3ed6ab added the handout (... already weeks old)
markus schnalke <meillo@marmaro.de>
parents:
diff changeset
21 rm -f *.ig