- $(RM) configure mk/config.h.in
- $(RM) -r autom4te.cache libraries/*/autom4te.cache
- $(RM) ghc.spec
- $(RM) libraries/*/GNUmakefile libraries/*/ghc.mk libraries/*/configure
- $(RM) libraries/base/include/HsBaseConfig.h.in
- $(RM) libraries/directory/include/HsDirectoryConfig.h.in
- $(RM) libraries/process/include/HsProcessConfig.h.in
- $(RM) libraries/unix/include/HsUnixConfig.h.in
- $(RM) libraries/old-time/include/HsTimeConfig.h.in
+ "$(RM)" $(RM_OPTS) configure mk/config.h.in
+ "$(RM)" $(RM_OPTS) -r autom4te.cache libraries/*/autom4te.cache
+ "$(RM)" $(RM_OPTS) ghc.spec
+ "$(RM)" $(RM_OPTS) $(patsubst %, libraries/%/GNUmakefile, \
+ $(PACKAGES) $(PACKAGES_STAGE2))
+ "$(RM)" $(RM_OPTS) $(patsubst %, libraries/%/ghc.mk, $(PACKAGES) $(PACKAGES_STAGE2))
+ "$(RM)" $(RM_OPTS) $(patsubst %, libraries/%/configure, \
+ $(PACKAGES) $(PACKAGES_STAGE2))
+ "$(RM)" $(RM_OPTS) libraries/base/include/HsBaseConfig.h.in
+ "$(RM)" $(RM_OPTS) libraries/directory/include/HsDirectoryConfig.h.in
+ "$(RM)" $(RM_OPTS) libraries/process/include/HsProcessConfig.h.in
+ "$(RM)" $(RM_OPTS) libraries/unix/include/HsUnixConfig.h.in
+ "$(RM)" $(RM_OPTS) libraries/old-time/include/HsTimeConfig.h.in
+
+.PHONY: all_libraries
+
+.PHONY: bootstrapping-files
+bootstrapping-files: $(OTHER_LIBS)
+bootstrapping-files: includes/ghcautoconf.h
+bootstrapping-files: includes/DerivedConstants.h
+bootstrapping-files: includes/GHCConstants.h
+
+.DELETE_ON_ERROR:
+