From: Martin Mares Date: Mon, 27 Dec 2010 18:51:55 +0000 (+0100) Subject: Makefile: rules for releasing X-Git-Tag: v1.0~4 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=8d8380fc77e0e2f9b9d21e8a23d3d583d4e303e1;p=minsk.git Makefile: rules for releasing --- diff --git a/Makefile b/Makefile index c78ecb0..be93308 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,23 @@ +VERSION=1.0 +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 -museum: - rm -rf museum - mkdir museum - cp ex-* museum/ - tar czvvf museum.tar.gz museum - rm -rf museum +web: + rsync -avzP . jw:www/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) atrey:~ftp/pub/local/mj/minsk/ + ssh jw "cd www && bin/release-prog minsk $(VERSION)" + mv $(ARCHIVE) ~/archives/mj/ clean: rm -f `find . -name "*~" -or -name "*.[oa]" -or -name core -or -name .depend -or -name .#*` - rm -f minsk museum.tar.gz + rm -f minsk