From: Martin Mares Date: Wed, 6 Jun 2018 09:54:36 +0000 (+0200) Subject: Makefile: Compile tests twice to get references right X-Git-Tag: v1.99~1^2~16 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=7bc3c2c2ec919cd24eac62de6915602a339b7e4a;p=ucwmac.git Makefile: Compile tests twice to get references right --- diff --git a/Makefile b/Makefile index 8ba18ab..a67bafa 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ VERSION=1.1 ARCHIVE=ucwmac-$(VERSION).tar.gz -all: test.pdf test-labels.pdf +all: test.pdf test-labels.pdf test-ref.pdf MACROS=$(wildcard ucw*.tex) @@ -13,6 +13,7 @@ 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 $< @@ -23,6 +24,7 @@ else ifdef USE_DVI %.dvi: %.tex $(MACROS) csplain -file-line-error $< + csplain -file-line-error $< %.pdf: %.dvi dvipdfm -r 600 -o $@ -p a4 $< @@ -31,6 +33,7 @@ else %.pdf: %.tex $(MACROS) pdfcsplain -file-line-error $< + pdfcsplain -file-line-error $< endif