]> mj.ucw.cz Git - arexx.git/blob - Makefile
Home: New MQTT server
[arexx.git] / Makefile
1 VERSION=2.0
2 ARCHIVE=arexxd-$(VERSION).tar.gz
3
4 CC=gcc
5 LD=gcc
6 CFLAGS=-O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wredundant-decls -std=gnu99 -DAREXXD_VERSION='"$(VERSION)"'
7 LDLIBS=-lusb-1.0 -lm -lrrd -lmosquitto
8
9 all: arexxd
10
11 clean:
12         rm -f `find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core -or -name .depend -or -name .#*`
13         rm -f arexxd
14
15 install: all
16         install arexxd /usr/local/sbin/
17
18 release:
19         git tag v$(VERSION)
20         git push --tags
21         git archive --format=tar --prefix=arexxd-$(VERSION)/ HEAD | gzip >$(ARCHIVE)
22         scp $(ARCHIVE) jw:~ftp/pub/mj/linux/
23         ssh jw "cd web && bin/release-prog arexxd $(VERSION)"
24         mv $(ARCHIVE) ~/archives/sw/arexxd/