summaryrefslogtreecommitdiff
path: root/Makefile
blob: 6213ac5d1d7a55e97aaed89e18ffbdd5bc78c4a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
default:
	@echo "Utility makefile - valid targets are"
	@echo ""
	@echo "  test - Run the test suite"
	@echo "  tidy - Clean debian-package files"


tidy:
	rm -rf ./debian/custodian
	rm -rf ./man
	rm -f ./debian/custodian.debhelper.log
	rm -f ./debian/custodian.substvars
	rm -f ./debian/files
	find . -name 'custodian-dequeue.log' -delete || true

docs: ./man/custodian-dequeue.man ./man/custodian-enqueue.man ./man/custodian-queue.man ./man/multi-ping.man


man/%.man: ./bin/%
	        [ -d man ] || mkdir man
			        RUBYLIB=./lib ./$<  --manual | sed -e 's/^=\+$$//' | txt2man -p -s 1 -t $(notdir $<) | sed -e 's/\\\\fB/\\fB/' > $@

test:
	t/test-suite