]> mj.ucw.cz Git - minsk.git/blobdiff - Makefile
readme.html: Fixed link to Po Drátě
[minsk.git] / Makefile
index fb4ef7ba49563dd21e099d592e5ab134704e6457..4780a3e38c0c4c81afaee2199333e017205d65b5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,23 @@
+VERSION=1.1
+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
 
 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/ext/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) jw:~ftp/pub/mj/minsk/
+       ssh jw "cd web && bin/release-prog minsk $(VERSION)"
+       mv $(ARCHIVE) ~/archives/sw/minsk/
+
 clean:
        rm -f `find . -name "*~" -or -name "*.[oa]" -or -name core -or -name .depend -or -name .#*`
 clean:
        rm -f `find . -name "*~" -or -name "*.[oa]" -or -name core -or -name .depend -or -name .#*`
+       rm -f minsk