From 43312e97c38de06d5adc86b05c40d266fafea9ab Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 31 May 2018 15:30:39 +0200 Subject: [PATCH] Makefile: Testing with classical TeX, pdfTeX, and LuaTeX --- Makefile | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) 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) -- 2.39.2