From: Martin Mares Date: Thu, 31 May 2018 13:30:39 +0000 (+0200) Subject: Makefile: Testing with classical TeX, pdfTeX, and LuaTeX X-Git-Tag: v1.99~1^2~48 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=43312e97c38de06d5adc86b05c40d266fafea9ab;p=ucwmac.git Makefile: Testing with classical TeX, pdfTeX, and LuaTeX --- diff --git a/Makefile b/Makefile index 963b7b7..f82f86b 100644 --- a/Makefile +++ b/Makefile @@ -3,17 +3,35 @@ ARCHIVE=ucwmac-$(VERSION).tar.gz all: test.pdf test-labels.pdf +ifdef USE_LUATEX + +LUATEX?=luatex +export TEXINPUTS=.//: +export LUAINPUTS=.//: + +%.pdf: %.tex ucw-luacsplain.fmt + $(LUATEX) -file-line-error -fmt ucw-luacsplain $< + +%.fmt: %.ini + $(LUATEX) -file-line-error -jobname $* -ini $< + +else ifdef USE_DVI + %.dvi: %.tex - csplain $< + csplain -file-line-error $< + +%.pdf: %.dvi + dvipdfm -r 600 -o $@ -p a4 $< -%.ps: %.dvi - dvips -D600 -o $@ -t a4 $< +else %.pdf: %.tex - pdfcsplain $< + pdfcsplain -file-line-error $< + +endif clean: - rm -f *~ *.log *.dvi *.ps *.pdf *.aux + rm -f *~ *.log *.dvi *.ps *.pdf *.aux *.fmt release: git tag v$(VERSION)