]> mj.ucw.cz Git - teatimer.git/blobdiff - Makefile
Add expansions in cmd
[teatimer.git] / Makefile
index bdadebcfb460bd1f0a451e52e1a153cbeb69fd98..2d3f30aa0143a6715577369a1efa911ab1384bab 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,7 @@
-GTK_LIBS=$(shell gtk-config --libs)
-GTK_CFLAGS=$(shell gtk-config --cflags)
+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)
 
 CFLAGS=-O2 $(GTK_CFLAGS) -Wall -W
 LDFLAGS=$(GTK_LIBS)
@@ -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/