cleaning the source tree when compiling outside the source tree
Eric Pouech
pouech-eric at wanadoo.fr
Sat Apr 5 04:14:46 CST 2003
A+
--
Eric Pouech
-------------- next part --------------
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__)
More information about the wine-patches
mailing list