Always run explicitly requested ways (extra_ways) for fast runs.
[ghc.git] / rules / docbook.mk
index 8030fb7..c7c7991 100644 (file)
@@ -5,8 +5,8 @@
 # This file is part of the GHC build system.
 #
 # To understand how the build system works and how to modify it, see
-#      http://hackage.haskell.org/trac/ghc/wiki/Building/Architecture
-#      http://hackage.haskell.org/trac/ghc/wiki/Building/Modifying
+#      http://ghc.haskell.org/trac/ghc/wiki/Building/Architecture
+#      http://ghc.haskell.org/trac/ghc/wiki/Building/Modifying
 #
 # -----------------------------------------------------------------------------
 
@@ -26,7 +26,7 @@ $(call all-target,$1,)
 
 .PHONY: html_$1
 
-ifeq "$$(phase)" ""
+ifeq "$$(phase)" "final"
 ifeq "$$(BUILD_DOCBOOK_HTML)" "YES"
 $(call all-target,$1,html_$1)
 INSTALL_HTML_DOC_DIRS += $1/$2
@@ -37,7 +37,7 @@ html_$1 : $1/$2/index.html
 
 ifneq "$$(BINDIST)" "YES"
 $1/$2/index.html: $$($1_DOCBOOK_SOURCES)
-       "$$(RM)" $$(RM_OPTS_REC) $$(dir $$@)
+       $$(call removeTrees,$$(dir $$@))
        "$$(XSLTPROC)" --stringparam base.dir $$(dir $$@) \
                       --stringparam use.id.as.filename 1 \
                       --stringparam html.stylesheet fptools.css \
@@ -50,7 +50,7 @@ endif
 
 
 .PHONY: ps_$1
-ifeq "$$(phase)" ""
+ifeq "$$(phase)" "final"
 ifeq "$$(BUILD_DOCBOOK_PS)" "YES"
 $(call all-target,$1,ps_$1)
 INSTALL_DOCS += $1/$2.ps
@@ -65,7 +65,7 @@ $1/$2.ps: $$($1_DOCBOOK_SOURCES)
        [ -f $$@ ]
 endif
 
-ifeq "$$(phase)" ""
+ifeq "$$(phase)" "final"
 ifeq "$$(BUILD_DOCBOOK_PDF)" "YES"
 $(call all-target,$1,pdf_$1)
 INSTALL_DOCS += $1/$2.pdf