]> mj.ucw.cz Git - teatimer.git/blob - Makefile
055db4a38d937e4bc430091b5edd341d68777c76
[teatimer.git] / Makefile
1 VERSION=1.3
2 ARCHIVE=teatimer-$(VERSION).tar.gz
3
4 GTK_LIBS:=$(shell pkg-config --libs gtk+-x11-2.0 glib-2.0)
5 GTK_CFLAGS:=$(shell pkg-config --cflags gtk+-x11-2.0 glib-2.0)
6
7 CFLAGS=-O2 $(GTK_CFLAGS) -Wall -W
8 LDFLAGS=$(GTK_LIBS)
9
10 all: teatimer
11
12 teatimer: teatimer.o
13
14 clean:
15         rm -f teatimer *.o *~
16
17 release:
18         git tag v$(VERSION)
19         git push --tags
20         git archive --format=tar --prefix=teatimer-$(VERSION)/ HEAD | gzip >$(ARCHIVE)
21         scp $(ARCHIVE) atrey:~ftp/pub/local/mj/linux/
22         ssh jw "cd web && bin/release-prog teatimer $(VERSION)"
23         mv $(ARCHIVE) ~/archives/mj/