3 ENABLE_SHELL_WRAPPERS = YES
4 EXTRA_CLEAN = Version.hs
6 include $(TOP)/mk/boilerplate.mk
7 include $(TOP)/mk/cabal.mk
9 with-bootstrapping-compiler: Version.hs
10 with-stage-1: Version.hs
12 Version.hs: Makefile $(TOP)/mk/config.mk
14 echo "module Version where" >> Version.hs
15 echo "version, targetOS, targetARCH :: String" >> Version.hs
16 echo "version = \"$(ProjectVersion)\"" >> Version.hs
17 echo "targetOS = \"$(TargetOS_CPP)\"" >> Version.hs
18 echo "targetARCH = \"$(TargetArch_CPP)\"" >> Version.hs