summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 842eb31fbe199c1bbf94fb949dec89a6322b46cd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
all: git-bz.html git-bz.1

%.xml: %.txt
	asciidoc -f asciidoc.conf -d manpage -b docbook $<

%.html: %.txt
	asciidoc -f asciidoc.conf -d manpage $<

%.1: %.xml
	xmlto man $<

upload-html: git-bz.html
	DEST=`git config local.upload-html-dest` ; \
	if [ $$? = 0 ] ; then : ; else echo "upload location not configured" ; exit 1 ; fi ; \
	scp $< $$DEST

clean:
	rm -f git-bz.xml git-bz.html git-bz.1