]> mj.ucw.cz Git - minsk.git/blobdiff - Makefile
Avoid shooting myself in the foot
[minsk.git] / Makefile
index 3ba909aa4a80b1ef52f2deac976c35fcb940bcd2..6ccd03ab267b8d213e16aeca78d1c820c0198cc9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,23 @@
+VERSION=1.0
+ARCHIVE=minsk-$(VERSION).tar.gz
+
 CC=gcc
 LD=gcc
 CFLAGS=-O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wredundant-decls -std=gnu99
 
 all: minsk
 
+web: minsk
+       rsync -avzP . jw:www/minsk/ --exclude=.git --exclude=.*.swp --delete
+
+release:
+       git tag v$(VERSION)
+       git push --tags
+       git archive --format=tar --prefix=minsk-$(VERSION)/ HEAD | gzip >$(ARCHIVE)
+       scp $(ARCHIVE) atrey:~ftp/pub/local/mj/minsk/
+       ssh jw "cd www && bin/release-prog minsk $(VERSION)"
+       mv $(ARCHIVE) ~/archives/mj/
+
 clean:
        rm -f `find . -name "*~" -or -name "*.[oa]" -or -name core -or -name .depend -or -name .#*`
        rm -f minsk