Use project config files
Use project-wide files to process documentation for git-subtree. Signed-off-by: David A. Greene <greened@obbligato.org>
David A. Greene committed
Jan 29, 2012 at 16:17 UTC
5163d476d04dc940b2e74d79c60e3b32fea12f02
1 file changed
+6
-3
contrib/subtree/Makefile
+6
-3
@@ -10,6 +10,9 @@ INSTALL_DATA = $(INSTALL) -c -m 0644
10
INSTALL_EXE = $(INSTALL) -c -m 0755
11
INSTALL_DIR = $(INSTALL) -c -d -m 0755
12
13
+ASCIIDOC_CONF = ../../Documentation/asciidoc.conf
14
+MANPAGE_NORMAL_XSL = ../../Documentation/manpage-normal.xsl
15
+
16
default:
17
@echo "git-subtree doesn't need to be built."
18
@echo "Just copy it somewhere on your PATH, like /usr/local/bin."
@@ -31,12 +34,12 @@ install-doc: git-subtree.1
34
doc: git-subtree.1
35
36
%.1: %.xml
34
- xmlto -m manpage-normal.xsl man $^
37
+ xmlto -m $(MANPAGE_NORMAL_XSL) man $^
38
39
%.xml: %.txt
37
- asciidoc -b docbook -d manpage -f asciidoc.conf \
40
+ asciidoc -b docbook -d manpage -f $(ASCIIDOC_CONF) \
41
-agit_version=$(gitver) $^
39
-
42
+
43
test:
44
./test.sh
45