Skip to content
Snippets Groups Projects
Makefile 1.25 KiB
Newer Older
Eric S. Raymond's avatar
Eric S. Raymond committed
# Makefile for the irker relaying tool

VERS=$(shell irkerd -V | sed 's/irkerd version //')
docs: irkerd.html irkerd.1
Eric S. Raymond's avatar
Eric S. Raymond committed
irkerd.1: irkerd.xml
	xmlto man irkerd.xml
irkerd.html: irkerd.xml
	xmlto html-nochunks irkerd.xml
install: irkerd.1 uninstall
Eric S. Raymond's avatar
Eric S. Raymond committed
	install -m 755 -o 0 -g 0 -d $(ROOT)/usr/bin/
Eric S. Raymond's avatar
Eric S. Raymond committed
	install -m 755 -o 0 -g 0 irkerd $(ROOT)/usr/bin/irkerd
Eric S. Raymond's avatar
Eric S. Raymond committed
	install -m 755 -o 0 -g 0 -d $(ROOT)/usr/share/man/man1/
Eric S. Raymond's avatar
Eric S. Raymond committed
	install -m 755 -o 0 -g 0 irkerd.1 $(ROOT)/usr/share/man/man1/irkerd.1
Eric S. Raymond's avatar
Eric S. Raymond committed

uninstall:
	rm -f ${ROOT}/usr/bin/irkerd ${ROOT}/usr/share/man/man1/irkerd.1
Eric S. Raymond's avatar
Eric S. Raymond committed

clean:
Eric S. Raymond's avatar
Eric S. Raymond committed
	rm -f irkerd.1 irker-*.tar.gz *~
Eric S. Raymond's avatar
Eric S. Raymond committed
	rm -f SHIPPER.* *.html

Eric S. Raymond's avatar
Eric S. Raymond committed
PYLINTOPTS = --rcfile=/dev/null --reports=n --include-ids=y --disable="C0103,C0111,C0301,R0201,R0902,R0903,R0912,E1101,W0201,W0621,W0702"
Eric S. Raymond's avatar
Eric S. Raymond committed
pylint:
Eric S. Raymond's avatar
Eric S. Raymond committed
	@pylint --output-format=parseable $(PYLINTOPTS) irkerd
Eric S. Raymond's avatar
Eric S. Raymond committed
	@pylint --output-format=parseable $(PYLINTOPTS) irkerhook.py
SOURCES = README COPYING NEWS BUGS install.txt security.txt \
Eric S. Raymond's avatar
Eric S. Raymond committed
	irkerd irkerhook.py Makefile irkerd.xml irker-logo.png
Eric S. Raymond's avatar
Eric S. Raymond committed

version:
	@echo $(VERS)

irker-$(VERS).tar.gz: $(SOURCES) irkerd.1
	tar --transform='s:^:irker-$(VERS)/:' --show-transformed-names -cvzf irker-$(VERS).tar.gz $(SOURCES)
Eric S. Raymond's avatar
Eric S. Raymond committed

dist: irker-$(VERS).tar.gz

Eric S. Raymond's avatar
Eric S. Raymond committed
release: irker-$(VERS).tar.gz irkerd.html
Eric S. Raymond's avatar
Eric S. Raymond committed
	shipper -u -m -t; make clean