Skip to content

Commit

Permalink
Documentation: clean up the makefile
Browse files Browse the repository at this point in the history
It seems unclean to just use xmlto and perl without having variables to wrap
the invocations.

Signed-off-by: Josef 'Jeff' Sipek <[email protected]>
  • Loading branch information
jeffpc committed Mar 23, 2014
1 parent 65a5566 commit 2bab740
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Documentation/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ man7dir=$(mandir)/man7
ASCIIDOC=asciidoc
ASCIIDOC_EXTRA =
INSTALL?=install
DOC_REF = origin/man
XMLTO=xmlto
XMLTO_EXTRA = --skip-validation
PERL=perl

all: html man

Expand All @@ -46,7 +47,7 @@ install-html: html
#
doc.dep : $(wildcard *.txt) build-docdep.perl
rm -f $@+ $@
perl ./build-docdep.perl >$@+
$(PERL) ./build-docdep.perl >$@+
mv $@+ $@

-include doc.dep
Expand All @@ -72,7 +73,7 @@ usage-%.txt: $(MAN1_TXT) usage.sh
$(ASCIIDOC) -b xhtml11 -d manpage -f asciidoc.conf $(ASCIIDOC_EXTRA) $<

%.1 %.7 : %.xml
xmlto -m callouts.xsl $(XMLTO_EXTRA) man $<
$(XMLTO) -m callouts.xsl $(XMLTO_EXTRA) man $<

%.xml : %.txt footer.txt version.txt
$(ASCIIDOC) -b docbook -a version=$(VERSION) -d manpage -f asciidoc.conf $<

0 comments on commit 2bab740

Please sign in to comment.