summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ghc.mk2
-rw-r--r--rules/haddock.mk2
2 files changed, 4 insertions, 0 deletions
diff --git a/ghc.mk b/ghc.mk
index 1344593a4c..61e17eea11 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -100,6 +100,8 @@
# o libraries/*
# o compiler
+.PHONY: default all haddock
+
default : all
# Just bring makefiles up to date:
diff --git a/rules/haddock.mk b/rules/haddock.mk
index e2efc92cca..c87aa61b62 100644
--- a/rules/haddock.mk
+++ b/rules/haddock.mk
@@ -21,6 +21,8 @@ else
$$(error Already got a haddock file for $$($1_PACKAGE))
endif
+haddock: $$($$($1_PACKAGE)_HADDOCK_FILE)
+
ifeq "$$(HADDOCK_DOCS)" "YES"
$(call all-target,$1_$2_haddock,$$($$($1_PACKAGE)_HADDOCK_FILE))
endif