summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/users_guide/ghc.mk2
-rw-r--r--rules/sphinx.mk2
2 files changed, 3 insertions, 1 deletions
diff --git a/docs/users_guide/ghc.mk b/docs/users_guide/ghc.mk
index 83cf60a78e..9144a0728e 100644
--- a/docs/users_guide/ghc.mk
+++ b/docs/users_guide/ghc.mk
@@ -30,6 +30,8 @@ $(MAN_PAGES): $(docs/users_guide_MAN_RST_SOURCES) $(utils/mkUserGuidePart_GENERA
$(SPHINXBUILD) -b man -d docs/users_guide/.doctrees-man docs/users_guide docs/users_guide/build-man
endif
+$(eval $(call clean-target,users-guide,manpage,docs/users_guide/.doctrees-man/ docs/users_guide/build-man/))
+
man : $(MAN_PAGES)
ifeq "$(BUILD_MAN)" "YES"
diff --git a/rules/sphinx.mk b/rules/sphinx.mk
index 5a3c7ce747..7337242762 100644
--- a/rules/sphinx.mk
+++ b/rules/sphinx.mk
@@ -22,7 +22,7 @@ $(call profStart, sphinx($1,$2))
# $1 = dir
# $2 = docname
-$(call clean-target,$1,sphinx,$1/.doctrees-html/ $1/.doctrees-pdf/ $1/build-html/ $1/build-pdf/ $1/$2.pdf)
+$(eval $(call clean-target,$1,sphinx,$1/.doctrees-html/ $1/.doctrees-pdf/ $1/build-html/ $1/build-pdf/ $1/$2.pdf))
# empty "all_$1" target just in case we're not building docs at all
$(call all-target,$1,)