projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix typos in profiling.xml
[ghc-hetmet.git]
/
rules
/
docbook.mk
diff --git
a/rules/docbook.mk
b/rules/docbook.mk
index
8488de1
..
5a7bfdf
100644
(file)
--- a/
rules/docbook.mk
+++ b/
rules/docbook.mk
@@
-15,6
+15,7
@@
define docbook
$(call trace, docbook($1,$2))
define docbook
$(call trace, docbook($1,$2))
+$(call profStart, docbook($1,$2))
# $1 = dir
# $2 = docname
# $1 = dir
# $2 = docname
@@
-25,10
+26,12
@@
$(call all-target,$1,)
.PHONY: html_$1
.PHONY: html_$1
+ifeq "$$(phase)" "final"
ifeq "$$(BUILD_DOCBOOK_HTML)" "YES"
$(call all-target,$1,html_$1)
INSTALL_HTML_DOC_DIRS += $1/$2
endif
ifeq "$$(BUILD_DOCBOOK_HTML)" "YES"
$(call all-target,$1,html_$1)
INSTALL_HTML_DOC_DIRS += $1/$2
endif
+endif
html_$1 : $1/$2/index.html
html_$1 : $1/$2/index.html
@@
-47,10
+50,12
@@
endif
.PHONY: ps_$1
.PHONY: ps_$1
+ifeq "$$(phase)" "final"
ifeq "$$(BUILD_DOCBOOK_PS)" "YES"
$(call all-target,$1,ps_$1)
INSTALL_DOCS += $1/$2.ps
endif
ifeq "$$(BUILD_DOCBOOK_PS)" "YES"
$(call all-target,$1,ps_$1)
INSTALL_DOCS += $1/$2.ps
endif
+endif
ps_$1 : $1/$2.ps
ps_$1 : $1/$2.ps
@@
-60,10
+65,12
@@
$1/$2.ps: $$($1_DOCBOOK_SOURCES)
[ -f $$@ ]
endif
[ -f $$@ ]
endif
+ifeq "$$(phase)" "final"
ifeq "$$(BUILD_DOCBOOK_PDF)" "YES"
$(call all-target,$1,pdf_$1)
INSTALL_DOCS += $1/$2.pdf
endif
ifeq "$$(BUILD_DOCBOOK_PDF)" "YES"
$(call all-target,$1,pdf_$1)
INSTALL_DOCS += $1/$2.pdf
endif
+endif
.PHONY: pdf_$1
pdf_$1 : $1/$2.pdf
.PHONY: pdf_$1
pdf_$1 : $1/$2.pdf
@@
-74,5
+81,6
@@
$1/$2.pdf: $$($1_DOCBOOK_SOURCES)
[ -f $$@ ]
endif
[ -f $$@ ]
endif
+$(call profEnd, docbook($1,$2))
endef
endef