Update the build system to handle building and using haddock2
[ghc-hetmet.git] / utils / ghc-pkg / Makefile
1
2 TOP=../..
3 ENABLE_SHELL_WRAPPERS = YES
4 EXTRA_CLEAN = Version.hs
5 EXTRA_INPLACE_CONFIGURE_FLAGS = $(INPLACE_GHC_DATADIR_CONFIGURE_FLAGS)
6 EXTRA_STAGE2_CONFIGURE_FLAGS = --datasubdir=.
7
8 include $(TOP)/mk/boilerplate.mk
9 include $(TOP)/mk/cabal.mk
10
11 with-bootstrapping-compiler: Version.hs
12 with-stage-2: Version.hs
13
14 Version.hs: Makefile $(TOP)/mk/config.mk
15         $(RM) -f Version.hs
16         echo "module Version where"                    >> Version.hs
17         echo "version, targetOS, targetARCH :: String" >> Version.hs
18         echo "version    = \"$(ProjectVersion)\""      >> Version.hs
19         echo "targetOS   = \"$(TargetOS_CPP)\""        >> Version.hs
20         echo "targetARCH = \"$(TargetArch_CPP)\""      >> Version.hs
21