summaryrefslogtreecommitdiff
path: root/Documentation/Makefile
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-08-30 05:38:12 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-08-30 05:38:12 (GMT)
commit8d0991d7d7d7e68ef39fe8d302f43110ef2c65d1 (patch)
treee7442052d5657196c2ccec421e5e1b17ff8fa207 /Documentation/Makefile
parent3459c2c433ac46eac596810d2ef2c3d4ef949852 (diff)
downloadgit-8d0991d7d7d7e68ef39fe8d302f43110ef2c65d1.zip
git-8d0991d7d7d7e68ef39fe8d302f43110ef2c65d1.tar.gz
git-8d0991d7d7d7e68ef39fe8d302f43110ef2c65d1.tar.bz2
Allow asciidoc formatted documentation in howto/
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Documentation/Makefile')
-rw-r--r--Documentation/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Documentation/Makefile b/Documentation/Makefile
index bd6833b..cc89174 100644
--- a/Documentation/Makefile
+++ b/Documentation/Makefile
@@ -45,7 +45,7 @@ git-diff-%.txt: diff-format.txt diff-options.txt
touch $@
clean:
- rm -f *.xml *.html *.1 *.7 howto-index.txt
+ rm -f *.xml *.html *.1 *.7 howto-index.txt howto/*.html
%.html : %.txt
asciidoc -b xhtml11 -d manpage $<
@@ -74,5 +74,12 @@ howto-index.html: howto-index.txt
WEBDOC_DEST = /pub/software/scm/git/docs
+DOC_HTML += howto/revert-branch-rebase.html
+
+$(patsubst %.txt,%.html,$(wildcard howto/*.txt)): %.html : %.txt
+ rm -f $@+ $@
+ sed -e '1,/^$$/d' $? | asciidoc -b xhtml11 - >$@+
+ mv $@+ $@
+
install-webdoc : html
sh ./install-webdoc.sh $(WEBDOC_DEST)