summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d46b9c2)
raw | patch | inline | side by side (parent: d46b9c2)
author | Jonas Fonseca <fonseca@diku.dk> | |
Tue, 5 Feb 2008 14:21:14 +0000 (15:21 +0100) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Tue, 5 Feb 2008 14:21:14 +0000 (15:21 +0100) |
Makefile | patch | blob | history |
diff --git a/Makefile b/Makefile
index c85e89244b619d3c423da9862f93429cefba063c..6cc4e424e6ef84a3e4c716a25be18cb6db6d86a8 100644 (file)
--- a/Makefile
+++ b/Makefile
AUTORECONF ?= autoreconf
ASCIIDOC ?= asciidoc
+ASCIIDOC_FLAGS = -aversion=$(VERSION)
XMLTO ?= xmlto
DOCBOOK2PDF ?= docbook2pdf
*) ref="$$ref, $$line" ;; \
esac; done | sed 's/\[\[\(.*\)\]\]/\1/' > $@
-README.html: README
+README.html: README asciidoc.conf
$(ASCIIDOC) $(ASCIIDOC_FLAGS) -b xhtml11 -d article -a readme $<
-%.pdf : %.xml
- $(DOCBOOK2PDF) $<
-
-%.1.html : %.1.txt
+%.1.html : %.1.txt asciidoc.conf
$(ASCIIDOC) $(ASCIIDOC_FLAGS) -b xhtml11 -d manpage $<
-%.1.xml : %.1.txt
- $(ASCIIDOC) $(ASCIIDOC_FLAGS) -b docbook -d manpage -aversion=$(VERSION) $<
+%.1.xml : %.1.txt asciidoc.conf
+ $(ASCIIDOC) $(ASCIIDOC_FLAGS) -b docbook -d manpage $<
-%.1 : %.1.xml
- $(XMLTO) man $<
-
-%.5.html : %.5.txt
+%.5.html : %.5.txt asciidoc.conf
$(ASCIIDOC) $(ASCIIDOC_FLAGS) -b xhtml11 -d manpage $<
-%.5.xml : %.5.txt
- $(ASCIIDOC) $(ASCIIDOC_FLAGS) -b docbook -d manpage -aversion=$(VERSION) $<
-
-%.5 : %.5.xml
- $(XMLTO) man $<
+%.5.xml : %.5.txt asciidoc.conf
+ $(ASCIIDOC) $(ASCIIDOC_FLAGS) -b docbook -d manpage $<
-%.html : %.txt
+%.html : %.txt asciidoc.conf
$(ASCIIDOC) $(ASCIIDOC_FLAGS) -b xhtml11 -d article -n $<
-%.xml : %.txt
+%.xml : %.txt asciidoc.conf
$(ASCIIDOC) $(ASCIIDOC_FLAGS) -b docbook -d article $<
+% : %.xml
+ $(XMLTO) man $<
+
%.html-chunked : %.xml
$(XMLTO) html -o $@ $<
+
+%.pdf : %.xml
+ $(DOCBOOK2PDF) $<