]> mj.ucw.cz Git - ucwmac.git/blob - Makefile
0f1fe1da9361d02795ce84be7afc2dd538b80581
[ucwmac.git] / Makefile
1 VERSION=1.0
2 ARCHIVE=ucwmac-$(VERSION).tar.gz
3
4 all: test.pdf test-labels.pdf
5
6 %.dvi: %.tex
7         csplain $<
8
9 %.ps: %.dvi
10         dvips -D600 -o $@ -t a4 $<
11
12 %.pdf: %.tex
13         pdfcsplain $<
14
15 clean:
16         rm -f *~ *.log *.dvi *.ps *.aux
17
18 release:
19         git tag v$(VERSION)
20         git push --tags
21         git archive --format=tar --prefix=ucwmac-$(VERSION)/ HEAD | gzip >$(ARCHIVE)
22         scp $(ARCHIVE) atrey:~ftp/pub/local/mj/tex/
23         ssh jw "cd www && bin/release-prog ucwmac $(VERSION)"
24         mv $(ARCHIVE) ~/archives/mj/