More build system changes; hasktags is now built with Cabal
[ghc-hetmet.git] / utils / ghc-pkg / Makefile
1
2 TOP=../..
3 ENABLE_SHELL_WRAPPERS = YES
4 EXTRA_CLEAN = Version.hs
5
6 include $(TOP)/mk/boilerplate.mk
7 include $(TOP)/mk/cabal.mk
8
9 with-bootstrapping-compiler: Version.hs
10 with-stage-1: Version.hs
11
12 Version.hs: Makefile $(TOP)/mk/config.mk
13         $(RM) -f Version.hs
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
19