LICENSE: X11 CHANGELOG: * Make.rules.in: Greg Turner (gmturner007@ameritech.net) - add "make cruftclean" target which removes patch-cruft and corefiles, but leaves binaries intact. -- Index: Make.rules.in =================================================================== RCS file: /home/wine/wine/Make.rules.in,v retrieving revision 1.135 diff -u -r1.135 Make.rules.in --- Make.rules.in 11 Dec 2002 01:34:52 -0000 1.135 +++ Make.rules.in 12 Dec 2002 14:33:27 -0000 @@ -97,8 +97,9 @@ dlldir = @libdir@/wine prog_manext = 1 conf_manext = 5 -CLEAN_FILES = *.o *.a *.so *.ln *.$(LIBEXT) \\\#*\\\# *~ *% .\\\#* *.bak *.orig *.rej \ - *.flc *.spec.c *.spec.def *.glue.c *.dbg.c y.tab.c y.tab.h @LEX_OUTPUT_ROOT@.c core +CRUFT_FILES = \\\#*\\\# *~ *% .\\\#* *.bak *.orig *.rej core +CLEAN_FILES = *.o *.a *.so *.ln *.$(LIBEXT) $(CRUFT_FILES) \ + *.flc *.spec.c *.spec.def *.glue.c *.dbg.c y.tab.c y.tab.h @LEX_OUTPUT_ROOT@.c OBJS = $(C_SRCS:.c=.o) $(EXTRA_OBJS) @@ -215,18 +216,27 @@ $(SUBDIRS:%=%/__clean__): dummy cd `dirname $@` && $(MAKE) clean +$(SUBDIRS:%=%/__cruftclean__): dummy + cd `dirname $@` && $(MAKE) cruftclean + $(SUBDIRS:%=%/__testclean__): dummy cd `dirname $@` && $(MAKE) testclean $(EXTRASUBDIRS:%=%/__clean__): dummy -cd `dirname $@` && $(RM) $(CLEAN_FILES) +$(EXTRASUBDIRS:%=%/__cruftclean__): dummy + -cd `dirname $@` && $(RM) $(CRUFT_FILES) + testclean:: $(SUBDIRS:%=%/__testclean__) clean:: $(SUBDIRS:%=%/__clean__) $(EXTRASUBDIRS:%=%/__clean__) $(RM) $(CLEAN_FILES) $(RC_SRCS:.rc=.res) $(RC_SRCS16:.rc=.res) $(MC_SRCS:.mc=.mc.rc) $(PROGRAMS) -.PHONY: clean testclean $(SUBDIRS:%=%/__clean__) $(SUBDIRS:%=%/__testclean__) $(EXTRASUBDIRS:%=%/__clean__) +cruftclean:: $(SUBDIRS:%=%/__cruftclean__) $(EXTRASUBDIRS:%=%/__cruftclean__) + $(RM) $(CRUFT_FILES) + +.PHONY: clean testclean cruftclean $(SUBDIRS:%=%/__clean__) $(SUBDIRS:%=%/__cruftclean__) $(SUBDIRS:%=%/__testclean__) $(EXTRASUBDIRS:%=%/__clean__) $(EXTRASUBDIRS:%=%/__cruftclean__) # Rules for installing -- gmt