From: Simon Marlow Date: Tue, 24 Jan 2006 13:11:21 +0000 (+0000) Subject: Generate PrimopWrappers.hs with Haddock docs X-Git-Tag: directory_2007-05-24~340 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=2badbeeedb47fa79e712273759c45027d1b06649;p=haskell-directory.git Generate PrimopWrappers.hs with Haddock docs Patch originally from Dinko Tenev , modified to add log message by me. --- 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