fix it so that 'make' on its own works even if we're not building docs
authorSimon Marlow <marlowsd@gmail.com>
Thu, 28 May 2009 11:16:08 +0000 (11:16 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Thu, 28 May 2009 11:16:08 +0000 (11:16 +0000)
rules/docbook.mk

index ce014c8..75a6907 100644 (file)
@@ -19,6 +19,9 @@ define docbook
 
 $(call clean-target,$1,docbook,$1/$2 $1/$2.pdf $1/$2.ps)
 
+# empty "all_$1" target just in case we're not building docs at all
+$(call all-target,$1,)
+
 ifeq "$$(BUILD_DOCBOOK_HTML)" "YES"
 $(call all-target,$1,html_$1)