Build system tweaks
[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
7 include $(TOP)/mk/boilerplate.mk
8 include $(TOP)/mk/cabal.mk
9
10 with-bootstrapping-compiler: Version.hs
11 with-stage-1: Version.hs
12
13 Version.hs: Makefile $(TOP)/mk/config.mk
14         $(RM) -f Version.hs
15         echo "module Version where"                    >> Version.hs
16         echo "version, targetOS, targetARCH :: String" >> Version.hs
17         echo "version    = \"$(ProjectVersion)\""      >> Version.hs
18         echo "targetOS   = \"$(TargetOS_CPP)\""        >> Version.hs
19         echo "targetARCH = \"$(TargetArch_CPP)\""      >> Version.hs
20