]> mj.ucw.cz Git - teatimer.git/blobdiff - Makefile
Add expansions in cmd
[teatimer.git] / Makefile
index f94b4ec1701e2097f61f4e6d6e6230bb3c1a2d5f..2d3f30aa0143a6715577369a1efa911ab1384bab 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,5 @@
+VERSION=1.3
+
 GTK_LIBS:=$(shell pkg-config --libs gtk+-x11-2.0 glib-2.0)
 GTK_CFLAGS:=$(shell pkg-config --cflags gtk+-x11-2.0 glib-2.0)
 
@@ -10,3 +12,11 @@ teatimer: teatimer.o
 
 clean:
        rm -f teatimer *.o *~
+
+release:
+       git tag v$(VERSION)
+       git push --tags
+       git archive --format=tar --prefix=teatimer-$(VERSION)/ HEAD | gzip >$(ARCHIVE)
+       scp $(ARCHIVE) atrey:~ftp/pub/local/mj/linux/
+       ssh jw "cd www && bin/release-prog teatimer $(VERSION)"
+       mv $(ARCHIVE) ~/archives/mj/