]> mj.ucw.cz Git - ucwmac.git/blobdiff - Makefile
Added ucw-labels: simple macros for typesetting of labels (stickers)
[ucwmac.git] / Makefile
index 97fd81515405aa4510332232b441353ba7b8d3ef..0f1fe1da9361d02795ce84be7afc2dd538b80581 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,24 @@
-all: test.ps
+VERSION=1.0
+ARCHIVE=ucwmac-$(VERSION).tar.gz
 
-include ../Makefile
+all: test.pdf test-labels.pdf
+
+%.dvi: %.tex
+       csplain $<
+
+%.ps: %.dvi
+       dvips -D600 -o $@ -t a4 $<
+
+%.pdf: %.tex
+       pdfcsplain $<
+
+clean:
+       rm -f *~ *.log *.dvi *.ps *.aux
+
+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)"
+       mv $(ARCHIVE) ~/archives/mj/