Skip to content

Commit

Permalink
Use project config files
Browse files Browse the repository at this point in the history
Use project-wide files to process documentation for git-subtree.

Signed-off-by: David A. Greene <greened@obbligato.org>
  • Loading branch information
David A. Greene committed Apr 10, 2012
1 parent c96c538 commit 5163d47
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions contrib/subtree/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ INSTALL_DATA = $(INSTALL) -c -m 0644
INSTALL_EXE = $(INSTALL) -c -m 0755
INSTALL_DIR = $(INSTALL) -c -d -m 0755

ASCIIDOC_CONF = ../../Documentation/asciidoc.conf
MANPAGE_NORMAL_XSL = ../../Documentation/manpage-normal.xsl

default:
@echo "git-subtree doesn't need to be built."
@echo "Just copy it somewhere on your PATH, like /usr/local/bin."
Expand All @@ -31,12 +34,12 @@ install-doc: git-subtree.1
doc: git-subtree.1

%.1: %.xml
xmlto -m manpage-normal.xsl man $^
xmlto -m $(MANPAGE_NORMAL_XSL) man $^

%.xml: %.txt
asciidoc -b docbook -d manpage -f asciidoc.conf \
asciidoc -b docbook -d manpage -f $(ASCIIDOC_CONF) \
-agit_version=$(gitver) $^

test:
./test.sh

Expand Down

0 comments on commit 5163d47

Please sign in to comment.