summaryrefslogtreecommitdiff
path: root/rules/docbook.mk
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2009-05-11 12:02:56 +0000
committerSimon Marlow <marlowsd@gmail.com>2009-05-11 12:02:56 +0000
commit61ef1764bf342f90480602770b43ec3ae768f7f1 (patch)
treee695635d2e6c8bc3ed59039b8cca8ed2955f52ee /rules/docbook.mk
parent1396b545018d2c945b9c289b022d77179a046fc6 (diff)
downloadhaskell-61ef1764bf342f90480602770b43ec3ae768f7f1.tar.gz
make it so that 'make html', 'make pdf', and 'make ps' work for docs
Diffstat (limited to 'rules/docbook.mk')
-rw-r--r--rules/docbook.mk15
1 files changed, 12 insertions, 3 deletions
diff --git a/rules/docbook.mk b/rules/docbook.mk
index 3eb5d94527..ce014c89f7 100644
--- a/rules/docbook.mk
+++ b/rules/docbook.mk
@@ -20,7 +20,10 @@ define docbook
$(call clean-target,$1,docbook,$1/$2 $1/$2.pdf $1/$2.ps)
ifeq "$$(BUILD_DOCBOOK_HTML)" "YES"
-$(call all-target,$1_html,$1/$2/index.html)
+$(call all-target,$1,html_$1)
+
+.PHONY: html_$1
+html_$1 : $1/$2/index.html
$1/$2/index.html: $$($1_DOCBOOK_SOURCES)
$$(RM) -r $$(dir $$@)
@@ -33,14 +36,20 @@ $1/$2/index.html: $$($1_DOCBOOK_SOURCES)
endif
ifeq "$$(BUILD_DOCBOOK_PS)" "YES"
-$(call all-target,$1_ps,$1/$2.ps)
+$(call all-target,$1,ps_$1)
+
+.PHONY: ps_$1
+ps_$1 : $1/$2.ps
$1/$2.ps: $$($1_DOCBOOK_SOURCES)
$$(DBLATEX) $$(DBLATEX_OPTS) $1/$2.xml --ps -o $$@
endif
ifeq "$$(BUILD_DOCBOOK_PDF)" "YES"
-$(call all-target,$1_pdf,$1/$2.pdf)
+$(call all-target,$1,pdf_$1)
+
+.PHONY: pdf_$1
+pdf_$1 : $1/$2.pdf
$1/$2.pdf: $$($1_DOCBOOK_SOURCES)
$$(DBLATEX) $$(DBLATEX_OPTS) $1/$2.xml --pdf -o $$@