]> mj.ucw.cz Git - minsk.git/blob - Makefile
readme.html: Fixed link to Po Drátě
[minsk.git] / Makefile
1 VERSION=1.1
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: minsk
11         rsync -avzP . jw:www/ext/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) jw:~ftp/pub/mj/minsk/
18         ssh jw "cd web && bin/release-prog minsk $(VERSION)"
19         mv $(ARCHIVE) ~/archives/sw/minsk/
20
21 clean:
22         rm -f `find . -name "*~" -or -name "*.[oa]" -or -name core -or -name .depend -or -name .#*`
23         rm -f minsk