3 ENABLE_SHELL_WRAPPERS = YES
4 EXTRA_CLEAN = Version.hs
5 EXTRA_INPLACE_CONFIGURE_FLAGS = $(INPLACE_GHC_DATADIR_CONFIGURE_FLAGS)
7 include $(TOP)/mk/boilerplate.mk
8 include $(TOP)/mk/cabal.mk
10 with-bootstrapping-compiler: Version.hs
11 with-stage-1: Version.hs
13 Version.hs: Makefile $(TOP)/mk/config.mk
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