X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=Makefile;h=40b135a094c2ba50ae6ad1f4f92a1dbae738a15f;hb=a31f777b7f8bdf581fac8d134793d128a2d53f18;hp=4ac7804dade0aa5ece7d6b788088df529070d534;hpb=ad76ccd81d34015fe248954757eb97c5d977a2a0;p=osdd.git diff --git a/Makefile b/Makefile index 4ac7804..40b135a 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 @@ -13,4 +16,12 @@ osdc: LDFLAGS+=-lX11 osd-batt: LDFLAGS+=-lX11 clean: - rm -f *~ *.o TAGS core osdd osdc + rm -f *~ *.o TAGS core osdd osdc osd-batt + +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/