cleaning the source tree when compiling outside the source tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



A+
--
Eric Pouech
Name:          mk
ChangeLog:     when compiling out of source tree, insure that make clean actually cleans also inside the source tree
License:       X11
GenDate:       2003/04/05 10:13:07 UTC
ModifiedFiles: Make.rules.in
===================================================================
RCS file: /home/cvs/cvsroot/wine/wine/Make.rules.in,v
retrieving revision 1.151
diff -u -u -r1.151 Make.rules.in
--- Make.rules.in	28 Mar 2003 19:31:49 -0000	1.151
+++ Make.rules.in	5 Apr 2003 10:09:15 -0000
@@ -202,11 +202,13 @@
 
 $(EXTRASUBDIRS:%=%/__clean__): dummy
 	-cd `dirname $@` && $(RM) $(CLEAN_FILES)
+	-cd $(SRCDIR)/`dirname $@` && $(RM) $(CLEAN_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)
+	-cd $(SRCDIR) && $(RM) $(CLEAN_FILES)
 
 .PHONY: clean testclean $(SUBDIRS:%=%/__clean__) $(SUBDIRS:%=%/__testclean__) $(EXTRASUBDIRS:%=%/__clean__)
 

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux