view 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
line wrap: on
line source

NAME = ref1-handout
CHAPS = ../style handout.roff
BIB = bib
PDFFLAGS = -sPAPERSIZE=a4 -dPDFSETTINGS=/prepress
REFER = refer -n -p $(BIB) -e -P -sLAD -a # -l,2 -k

all: $(NAME).ps

$(NAME).ps: $(CHAPS) makefile $(BIB)
	export TROFFONTS=../fonts;\
	soelim $(CHAPS) | $(REFER) | \
		troff -Tps -ms 2>err.ig | dpost >$@

pdf: $(NAME).pdf
$(NAME).pdf: $(NAME).ps
	ps2pdf $(PDFFLAGS) $(NAME).ps 2>/dev/null

clean:
	rm -f $(NAME).ps $(NAME).pdf book.ps book.pdf
	rm -rf refs
	rm -f *.ig