]> mj.ucw.cz Git - minsk.git/blob - Makefile
be93308ccf615f9c26c26024882fd75ee7e007a1
[minsk.git] / Makefile
1 VERSION=1.0
2 ARCHIVE=minsk-$(VERSION).tar.gz
3
4 CC=gcc
5 LD=gcc
6 CFLAGS=-O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wredundant-decls -std=gnu99
7
8 all: minsk
9
10 web:
11         rsync -avzP . jw:www/minsk/ --exclude=.git --exclude=.*.swp --delete
12
13 release:
14         git tag v$(VERSION)
15         git push --tags
16         git archive --format=tar --prefix=minsk-$(VERSION)/ HEAD | gzip >$(ARCHIVE)
17         scp $(ARCHIVE) atrey:~ftp/pub/local/mj/minsk/
18         ssh jw "cd www && bin/release-prog minsk $(VERSION)"
19         mv $(ARCHIVE) ~/archives/mj/
20
21 clean:
22         rm -f `find . -name "*~" -or -name "*.[oa]" -or -name core -or -name .depend -or -name .#*`
23         rm -f minsk