-VERSION=0.2
+VERSION=1.1
ARCHIVE=ucwmac-$(VERSION).tar.gz
-all: test.ps
+all: test.pdf test-labels.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 $<
+
+%.fmt: %.ini
+ $(LUATEX) -file-line-error -jobname $* -ini $<
+
+else ifdef USE_DVI
+
+%.dvi: %.tex $(MACROS)
+ csplain -file-line-error $<
+
+%.pdf: %.dvi
+ dvipdfm -r 600 -o $@ -p a4 $<
+
+else
+
+%.pdf: %.tex $(MACROS)
+ pdfcsplain -file-line-error $<
+
+endif
clean:
- rm -f *~ *.log *.dvi *.ps *.aux
+ rm -f *~ *.log *.dvi *.ps *.pdf *.aux *.fmt
release:
git tag v$(VERSION)
git push --tags
git archive --format=tar --prefix=ucwmac-$(VERSION)/ HEAD | gzip >$(ARCHIVE)
scp $(ARCHIVE) atrey:~ftp/pub/local/mj/tex/
- ssh jw "cd www && bin/release-prog ucwmac $(VERSION)"
+ ssh jw "cd web && bin/release-prog ucwmac $(VERSION)"
mv $(ARCHIVE) ~/archives/mj/