X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=Makefile;h=9bdb6ffb7ab47316be7c3c0730d550567c14ebda;hb=c35777a78cc041672856c74cdaa478bc119c8c69;hp=4ac7804dade0aa5ece7d6b788088df529070d534;hpb=ad76ccd81d34015fe248954757eb97c5d977a2a0;p=osdd.git diff --git a/Makefile b/Makefile index 4ac7804..9bdb6ff 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,6 @@ +VERSION=1.0 +ARCHIVE=osdd-$(VERSION).tar.gz + CFLAGS=-O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wredundant-decls -std=gnu99 all: osdd osdc osd-batt @@ -14,3 +17,11 @@ osd-batt: LDFLAGS+=-lX11 clean: rm -f *~ *.o TAGS core osdd osdc + +release: + git tag v$(VERSION) + git push --tags + git archive --format=tar --prefix=osdd-$(VERSION)/ HEAD | gzip >$(ARCHIVE) + scp $(ARCHIVE) atrey:~ftp/pub/local/mj/linux/ + ssh jw "cd www && bin/release-prog osdd $(VERSION)" + mv $(ARCHIVE) ~/archives/mj/