X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=Makefile;h=eaf18f8f80ecb2b9899b19e7404720a7c5dd0ad9;hb=refs%2Ftags%2Fv1.99;hp=963b7b7f97302b67ec5797da5c02bd6d2de44e50;hpb=a334264e5bfec3e7561c768c47d729b7dd9bddbe;p=ucwmac.git diff --git a/Makefile b/Makefile index 963b7b7..eaf18f8 100644 --- a/Makefile +++ b/Makefile @@ -1,19 +1,44 @@ -VERSION=1.1 +VERSION=1.99 ARCHIVE=ucwmac-$(VERSION).tar.gz -all: test.pdf test-labels.pdf +all: test.pdf test-labels.pdf test-ref.pdf -%.dvi: %.tex - csplain $< +MACROS=$(wildcard ucw*.tex) -%.ps: %.dvi - dvips -D600 -o $@ -t a4 $< +ifdef USE_LUATEX -%.pdf: %.tex - pdfcsplain $< +LUATEX?=luatex +export TEXINPUTS=.//: +export LUAINPUTS=.//: + +%.pdf: %.tex $(MACROS) ucw-luacsplain.fmt + $(LUATEX) -file-line-error -fmt ucw-luacsplain $< + $(LUATEX) -file-line-error -fmt ucw-luacsplain $< + +%.fmt: %.ini + $(LUATEX) -file-line-error -jobname $* -ini $< + +.SECONDARY: ucw-luacsplain.fmt + +else ifdef USE_DVI + +%.dvi: %.tex $(MACROS) + csplain -file-line-error $< + csplain -file-line-error $< + +%.pdf: %.dvi + dvipdfm -r 600 -o $@ -p a4 $< + +else + +%.pdf: %.tex $(MACROS) + pdfcsplain -file-line-error $< + 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)