- $(RM) config.cache config.status config.log mk/config.h mk/stamp-h
- $(RM) mk/config.mk mk/are-validating.mk mk/project.mk
- $(RM) extra-gcc-opts docs/users_guide/ug-book.xml
- $(RM) compiler/ghc.cabal ghc/ghc-bin.cabal
- $(RM) libraries/base/include/HsBaseConfig.h
- $(RM) libraries/directory/include/HsDirectoryConfig.h
- $(RM) libraries/process/include/HsProcessConfig.h
- $(RM) libraries/unix/include/HsUnixConfig.h
- $(RM) libraries/old-time/include/HsTimeConfig.h
+ "$(RM)" $(RM_OPTS) config.cache config.status config.log mk/config.h mk/stamp-h
+ "$(RM)" $(RM_OPTS) mk/config.mk mk/are-validating.mk mk/project.mk
+ "$(RM)" $(RM_OPTS) extra-gcc-opts docs/users_guide/ug-book.xml
+ "$(RM)" $(RM_OPTS) compiler/ghc.cabal ghc/ghc-bin.cabal
+ "$(RM)" $(RM_OPTS) libraries/base/include/HsBaseConfig.h
+ "$(RM)" $(RM_OPTS) libraries/directory/include/HsDirectoryConfig.h
+ "$(RM)" $(RM_OPTS) libraries/process/include/HsProcessConfig.h
+ "$(RM)" $(RM_OPTS) libraries/unix/include/HsUnixConfig.h
+ "$(RM)" $(RM_OPTS) libraries/old-time/include/HsTimeConfig.h
+ "$(RM)" $(RM_OPTS) $(patsubst %, libraries/%/config.log, $(PACKAGES) $(PACKAGES_STAGE2))
+ "$(RM)" $(RM_OPTS) $(patsubst %, libraries/%/config.status, $(PACKAGES) $(PACKAGES_STAGE2))
+ "$(RM)" $(RM_OPTS) $(patsubst %, libraries/%/include/Hs*Config.h, $(PACKAGES) $(PACKAGES_STAGE2))
+ "$(RM)" $(RM_OPTS) -r $(patsubst %, libraries/%/autom4te.cache, $(PACKAGES) $(PACKAGES_STAGE2))