[project @ 2005-07-21 12:54:33 by simonmar]
authorsimonmar <unknown>
Thu, 21 Jul 2005 12:54:33 +0000 (12:54 +0000)
committersimonmar <unknown>
Thu, 21 Jul 2005 12:54:33 +0000 (12:54 +0000)
Hack Makefiles so that 'make distclean' works even if the tree has not
been configured, or 'make distclean' has already been run.

This is to solve problems caused by 'make distclean' removing files
that it needs itself - previously we were arranging to remove certain
files right at the end of cleaning, but this is fragile.  So now we
assume that e.g. the X11 library is always enabled when we're
cleaning.

Makefile

index 5179b7c..597ce30 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -128,8 +128,7 @@ System/Posix/Types.o Foreign/C/Types.o: include/CTypes.h
 
 # -----------------------------------------------------------------------------
 
-DIST_CLEAN_FILES += base.buildinfo config.cache config.status 
-LATE_DIST_CLEAN_FILES += config.mk
+DIST_CLEAN_FILES += base.buildinfo config.cache config.status config.mk
 
 include $(TOP)/mk/target.mk