view handout/makefile @ 59:9b01685b5ee2

applied language and formating requests by PersBib
author markus schnalke <meillo@marmaro.de>
date Sun, 26 Oct 2014 10:34:33 +0100
parents 5f55fcc2ee69
children
line wrap: on
line source

NAME = ref2-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 pdf

$(NAME).ps: $(CHAPS) makefile $(BIB)
	export TROFFONTS=../fonts;\
	soelim $(CHAPS) | $(REFER) | tbl | pic | \
		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