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=.
8 include $(TOP)/mk/boilerplate.mk
9 include $(TOP)/mk/cabal.mk
11 with-bootstrapping-compiler: Version.hs
12 with-stage-2: Version.hs
14 Version.hs: Makefile $(TOP)/mk/config.mk
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