Commit d1ce1aa9 authored by Ben Gamari's avatar Ben Gamari Committed by Ben Gamari
Browse files

users-guide: Clean manpage build artifacts and fix usage of clean-target

Test Plan: Build then clean

Reviewers: austin, thomie

Reviewed By: thomie

Differential Revision:

GHC Trac Issues: #11433
parent ae1c48c6
......@@ -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
$(eval $(call clean-target,users-guide,manpage,docs/users_guide/.doctrees-man/ docs/users_guide/build-man/))
man : $(MAN_PAGES)
ifeq "$(BUILD_MAN)" "YES"
......@@ -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,)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment