X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=Makefile;h=5157ef13ea4a9b8207d2634fa9c8cedf87009d94;hb=792c0b584d78fdab6834553b79f9b5d445ae80e6;hp=5e62d0c3c3c64db4c862aebbdc22f133ae0ad484;hpb=05e43a9bd25232efced01ce45d00b3b3ba12af51;p=ghc-base.git diff --git a/Makefile b/Makefile index 5e62d0c..5157ef1 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ # ----------------------------------------------------------------------------- -# $Id: Makefile,v 1.23 2002/04/11 12:03:43 simonpj Exp $ +# $Id: Makefile,v 1.29 2002/05/31 12:22:33 panne Exp $ TOP=.. include $(TOP)/mk/boilerplate.mk @@ -35,6 +35,7 @@ ALL_DIRS = \ Text/Html \ Text/PrettyPrint \ Text/ParserCombinators \ + Text/ParserCombinators/Parsec \ Text/Regex \ Text/Show \ Text/Read @@ -65,6 +66,7 @@ GHC/PrimopWrappers.hs: $(GHC_COMPILER_DIR)/prelude/primops.txt boot :: GHC/PrimopWrappers.hs +EXTRA_SRCS += GHC/PrimopWrappers.hs CLEAN_FILES += GHC/PrimopWrappers.hs #----------------------------------------------------------------------------- @@ -87,6 +89,31 @@ endif # TARGETPLATFORM = i386-unknown-mingw32 # ----------------------------------------------------------------------------- +# Doc building with Haddock + +EXCLUDED_HADDOCK_SRCS = \ + Data/Generics.hs \ + GHC/PArr.hs + +HS_PPS = $(addsuffix .raw-hs, $(basename $(filter-out $(EXCLUDED_HADDOCK_SRCS), $(HS_SRCS)))) + +HADDOCK = $(FPTOOLS_TOP)/haddock/src/haddock-inplace + +# Urgh, hack needed to ensure that the value of HS_SRCS is computed in time for +# the docs rule below. +PRE_SRCS := $(ALL_SRCS) + +.PHONY: docs +haddock-docs : $(HS_PPS) + $(HADDOCK) -t "Haskell Core Libraries" -h -s "." $(HS_PPS) + +%.raw-hs : %.lhs + $(GHC_INPLACE) $(HC_OPTS) -D__HADDOCK__ -E -cpp $< -o $<.tmp && sed -e 's/^#.*//' <$<.tmp >$@ + +%.raw-hs : %.hs + $(GHC_INPLACE) $(HC_OPTS) -D__HADDOCK__ -E -cpp $< -o $<.tmp && sed -e 's/^#.*//' <$<.tmp >$@ + +# ----------------------------------------------------------------------------- include $(TOP)/mk/target.mk @@ -97,4 +124,3 @@ HSbase.o : $(GHCI_LIBOBJS) @touch HSbase.o endif # TARGETPLATFORM = i386-unknown-mingw32 -