From 2badbeeedb47fa79e712273759c45027d1b06649 Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Tue, 24 Jan 2006 13:11:21 +0000 Subject: [PATCH] Generate PrimopWrappers.hs with Haddock docs Patch originally from Dinko Tenev , modified to add log message by me. --- Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 61ce5f2..cf5917c 100644 --- a/Makefile +++ b/Makefile @@ -56,14 +56,21 @@ SRC_CPP_OPTS += -I$(GHC_INCLUDE_DIR) SRC_CPP_OPTS += ${GhcCppOpts} ifeq "$(BootingFromHc)" "YES" -GHC/PrimopWrappers.hs: +GHC/PrimopWrappers.hs: GHC/Prim.hs touch GHC/PrimopWrappers.hs else -GHC/PrimopWrappers.hs: $(GHC_COMPILER_DIR)/prelude/primops.txt +GHC/PrimopWrappers.hs: $(GHC_COMPILER_DIR)/prelude/primops.txt GHC/Prim.hs @$(RM) $@ $(GHC_GENPRIMOP) --make-haskell-wrappers < $< > $@ endif +GHC/Prim.hs: $(GHC_COMPILER_DIR)/prelude/primops.txt + @$(RM) $@ + $(GHC_GENPRIMOP) --make-haskell-source < $< > $@ + +EXCLUDED_SRCS = GHC/Prim.hs +EXTRA_HADDOCK_SRCS = GHC/Prim.hs + boot :: GHC/PrimopWrappers.hs EXTRA_SRCS += GHC/PrimopWrappers.hs -- 1.7.10.4