docs/suckless
diff Makefile @ 0:79424d211485
initial commit (based on GimmeShellter)
author | meillo@marmaro.de |
---|---|
date | Mon, 11 Aug 2008 21:42:23 +0200 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/Makefile Mon Aug 11 21:42:23 2008 +0200 1.3 @@ -0,0 +1,66 @@ 1.4 +# Makefile for latex docs 1.5 +# by meillo@marmaro.de 1.6 +# 1.7 + 1.8 + 1.9 +PDFLATEX = pdflatex 1.10 + 1.11 +SRC = suckless.tex 1.12 +OBJ = suckless.pdf 1.13 +#OBJ = ${SRC:.tex:.pdf} 1.14 + 1.15 +PRINT = print.tex 1.16 +PRINTPDF = print.pdf 1.17 +PRINTALL = print.* 1.18 +PRINTOBJ = suckless_print.pdf 1.19 + 1.20 + 1.21 +all: ${OBJ} 1.22 + 1.23 + 1.24 +#.tex.pdf: 1.25 +${OBJ}: ${SRC} 1.26 + @echo generating $< 1.27 + @${PDFLATEX} $< 1.28 + 1.29 + 1.30 +dist: realclean print 1.31 + # generate 3 times for correct toc and pagenumbers 1.32 + ${MAKE} all 1.33 + sleep 1 1.34 + touch ${SRC} 1.35 + ${MAKE} all 1.36 + sleep 1 1.37 + touch ${SRC} 1.38 + ${MAKE} all 1.39 + 1.40 + 1.41 +clean: 1.42 + @echo 'cleaning ...' 1.43 + @rm -f *.{aux,lof,log,lot,nav,out,snm,toc} 1.44 + 1.45 +rmpdf: 1.46 + @echo 'removing PDFs ...' 1.47 + @rm -f *.pdf 1.48 + 1.49 +realclean: clean rmpdf 1.50 + 1.51 +xpdf: all 1.52 + xpdf -z page ${OBJ} & 1.53 + 1.54 +print: 1.55 + @echo 'creating print version' 1.56 + @sed -e '/\\pause/d' ${SRC} > ${PRINT} 1.57 + @${PDFLATEX} ${PRINT} 1.58 + sleep 1 1.59 + touch ${SRC} 1.60 + @${PDFLATEX} ${PRINT} 1.61 + sleep 1 1.62 + touch ${SRC} 1.63 + @${PDFLATEX} ${PRINT} 1.64 + @${MAKE} clean 1.65 + @rm -r ${PRINT} 1.66 + @mv ${PRINTPDF} ${PRINTOBJ} 1.67 + 1.68 +.PHONY: all xpdf dist clean realclean rmpdf 1.69 +.SUFFIXES: .tex .pdf