X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=Makefile;h=4780a3e38c0c4c81afaee2199333e017205d65b5;hb=HEAD;hp=4fa1bbe5b8194f3b1857d6ea4d067a21e48c589f;hpb=0f496e4531c03046b33be3fcfbe5ad890ed5dc85;p=minsk.git diff --git a/Makefile b/Makefile index 4fa1bbe..4780a3e 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,22 @@ +VERSION=1.1 +ARCHIVE=minsk-$(VERSION).tar.gz + CC=gcc LD=gcc CFLAGS=-O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wredundant-decls -std=gnu99 all: minsk -examples: - rm -rf examples - mkdir examples - cp ex-* examples/ - tar czvvf examples.tar.gz examples - rm -rf examples +web: minsk + rsync -avzP . jw:www/ext/minsk/ --exclude=.git --exclude=.*.swp --delete + +release: + git tag v$(VERSION) + git push --tags + git archive --format=tar --prefix=minsk-$(VERSION)/ HEAD | gzip >$(ARCHIVE) + scp $(ARCHIVE) jw:~ftp/pub/mj/minsk/ + ssh jw "cd web && bin/release-prog minsk $(VERSION)" + mv $(ARCHIVE) ~/archives/sw/minsk/ clean: rm -f `find . -name "*~" -or -name "*.[oa]" -or -name core -or -name .depend -or -name .#*`