]> mj.ucw.cz Git - arexx.git/blobdiff - Makefile
make release: Reorganization of directory structure
[arexx.git] / Makefile
index 637fca7d31d63cbb73f3650e0146001caa582bbc..1c1329759b565b6e71e0f617e1bc144623d85bee 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,10 @@
+VERSION=1.99
+ARCHIVE=arexxd-$(VERSION).tar.gz
+
 CC=gcc
 LD=gcc
-CFLAGS=-O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wredundant-decls -std=gnu99
-LDLIBS=-lusb-1.0 -lm -lrrd
+CFLAGS=-O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wredundant-decls -std=gnu99 -DAREXXD_VERSION='"$(VERSION)"'
+LDLIBS=-lusb-1.0 -lm -lrrd -lmosquitto
 
 all: arexxd
 
@@ -11,3 +14,11 @@ clean:
 
 install: all
        install arexxd /usr/local/sbin/
+
+release:
+       git tag v$(VERSION)
+       git push --tags
+       git archive --format=tar --prefix=arexxd-$(VERSION)/ HEAD | gzip >$(ARCHIVE)
+       scp $(ARCHIVE) atrey:~ftp/pub/local/mj/linux/
+       ssh jw "cd web && bin/release-prog arexxd $(VERSION)"
+       mv $(ARCHIVE) ~/archives/sw/arexxd/