1 # Makefile for the irker relaying tool
3 VERS=$(shell irkerd -V | sed 's/irkerd version //')
5 docs: irkerd.html irkerd.8 irkerhook.html irkerhook.1
9 irkerd.html: irkerd.xml
10 xmlto html-nochunks irkerd.xml
12 irkerhook.1: irkerhook.xml
13 xmlto man irkerhook.xml
14 irkerhook.html: irkerhook.xml
15 xmlto html-nochunks irkerhook.xml
17 install: irkerd.8 irkerhook.1 uninstall
18 install -m 755 -o 0 -g 0 -d $(ROOT)/usr/bin/
19 install -m 755 -o 0 -g 0 irkerd $(ROOT)/usr/bin/irkerd
20 install -m 755 -o 0 -g 0 -d $(ROOT)/usr/share/man/man1/
21 install -m 755 -o 0 -g 0 irkerd.8 $(ROOT)/usr/share/man/man1/irkerd.8
22 install -m 755 -o 0 -g 0 -d $(ROOT)/usr/share/man/man8/
23 install -m 755 -o 0 -g 0 irkerd.8 $(ROOT)/usr/share/man/man1/irkerhook.1
26 rm -f ${ROOT}/usr/bin/irkerd
27 rm -f ${ROOT}/usr/share/man/man1/irkerd.8
28 rm -f ${ROOT}/usr/share/man/man1/irkerhook.1
31 rm -f irkerd.8 irker-*.tar.gz *~
32 rm -f SHIPPER.* *.html
34 PYLINTOPTS = --rcfile=/dev/null --reports=n --include-ids=y --disable="C0103,C0111,C0301,R0201,R0902,R0903,R0912,E1101,W0201,W0621,W0702"
36 @pylint --output-format=parseable $(PYLINTOPTS) irkerd
37 @pylint --output-format=parseable $(PYLINTOPTS) irkerhook.py
40 SOURCES = README COPYING NEWS BUGS install.txt security.txt hacking.txt \
41 irkerd irkerhook.py Makefile irkerd.xml irkerhook.xml irker-logo.png
46 irker-$(VERS).tar.gz: $(SOURCES) irkerd.8 irkerhook.1
47 tar --transform='s:^:irker-$(VERS)/:' --show-transformed-names -cvzf irker-$(VERS).tar.gz $(SOURCES)
49 dist: irker-$(VERS).tar.gz
51 release: irker-$(VERS).tar.gz irkerd.html irkerhook.html
52 shipper -u -m -t; make clean