Commit 51d7126e authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Generate ghc.cabal and ghc-bin.cabal with configure

This allows us to put the proper version number into them
parent 36cc8411
......@@ -71,6 +71,11 @@ else
clean distclean:: clean.stage.$(stage)
endif
ifeq "$(CLEAN_ALL_STAGES)" "YES"
distclean::
$(RM) -f ghc.cabal
endif
clean.stage.%:
-$(CABAL) clean --distpref dist-stage$*
$(RM) -f Makefile-stage$*
......
Name: ghc
-- XXX Version number!
Version: 6.9
Version: @ProjectVersion@
Copyright: XXX
-- License: XXX
License-File: ../LICENSE
......
......@@ -1276,6 +1276,6 @@ else
fi
AC_SUBST(HavePapi)
AC_CONFIG_FILES([mk/config.mk ghc.spec extra-gcc-opts docs/users_guide/ug-book.xml])
AC_CONFIG_FILES([mk/config.mk compiler/ghc.cabal ghc/ghc-bin.cabal ghc.spec extra-gcc-opts docs/users_guide/ug-book.xml])
AC_CONFIG_COMMANDS([mk/stamp-h],[echo timestamp > mk/stamp-h])
AC_OUTPUT
......@@ -34,12 +34,18 @@ stage2 ::
stage3 ::
$(MAKE) stage=3
ifeq "$(CLEAN_ALL_STAGES)" "YES"
clean distclean:: clean.stage.1 clean.stage.2 clean.stage.3
else
clean distclean:: clean.stage.$(stage)
endif
ifeq "$(CLEAN_ALL_STAGES)" "YES"
distclean::
$(RM) -f ghc-bin.cabal
endif
clean.stage.%:
-$(CABAL) clean --distpref dist-stage$*
$(RM) -rf stage$*-inplace
......
Name: ghc-bin
-- XXX Version number!
Version: 6.9
Version: @ProjectVersion@
Copyright: XXX
-- License: XXX
-- License-File: XXX
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment