blob: e6828f37b7e2585487ffa84be827283cdf5185c1 (
plain) (
blame)
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
26
27
28
29
30
31
32
33
34
35
36
|
include Makefile.inc
ifeq ($(enable_documentation),yes)
docs = git-bz.html git-bz.1
else
docs =
endif
all: $(docs)
%.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
install: install-bin $(if $(findstring yes,$(enable_documentation)),install-doc)
install-bin:
mkdir -p $(DESTDIR)$(bindir)
install -m 0755 $(srcdir)/git-bz $(DESTDIR)$(bindir)
install-doc:
mkdir -p $(DESTDIR)$(mandir)/man1
install -m 0644 git-bz.1 $(DESTDIR)$(mandir)/man1
|