diff doc/manual/Makefile.generic @ 0:3e629dc19168

initial from svn dyncall-1745
author Daniel Adler
date Thu, 19 Mar 2015 22:24:28 +0100
parents
children 33c333ec5ad2
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/doc/manual/Makefile.generic	Thu Mar 19 22:24:28 2015 +0100
@@ -0,0 +1,21 @@
+all: manual.pdf
+
+sources: *.tex callconvs/*.tex dyncall_logo.* dyncall_watermark.*
+
+manual.pdf: sources
+	# run twice for toc on some tex installs
+	cd ${VPATH} && pdflatex -output-directory=${PWD} manual.tex
+	cd ${VPATH} && pdflatex -output-directory=${PWD} manual.tex
+
+manual.html: manual_tex4ht.cfg sources
+	# Create tex4ht.env from default one, but with better bitmaps
+	cp $$(dirname $$(which tex4ht))/../share/texmf-dist/tex4ht/base/unix/tex4ht.env ${VPATH}/
+	cd ${VPATH} && sed -E -i '' 's/(Text|Graphics)(AlphaBits)=[1,2,3]([^0-9])/\1\2=4\3/g' tex4ht.env
+	cd ${VPATH} && htlatex manual.tex manual_tex4ht " -cunihtf"
+
+clean:
+	# pdf
+	for i in pdf aux lof log lol lot out toc; do rm -f manual.$$i || true; done
+	# html
+	for i in 4ct 4tc css dvi html idv lg tmp xref; do rm -f manual.$$i || true; done
+	for i in manual*x.png manual*.html texput.log manual_*.log zzmanual.eps zzmanual.ps tex4ht.env; do rm -f $$i || true; done