This allows us to put the proper version number into them
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
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
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