X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=Makefile;h=2f88f152cb652df14ff867d9f2928f42c7b20d7f;hb=refs%2Fheads%2Fmaster;hp=e1364334233168d90afb0c67aba446911581bff3;hpb=c14df1a541821430c061c98e9a99bad1951115b6;p=arexx.git diff --git a/Makefile b/Makefile index e136433..2f88f15 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,24 @@ +VERSION=2.0 +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 +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: arexx +all: arexxd clean: rm -f `find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core -or -name .depend -or -name .#*` - rm -f arexx + rm -f arexxd + +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) jw:~ftp/pub/mj/linux/ + ssh jw "cd web && bin/release-prog arexxd $(VERSION)" + mv $(ARCHIVE) ~/archives/sw/arexxd/