Changeset - r19039:87e83f679167
[Not reviewed]
master
0 1 0
matthijs - 13 years ago 2012-02-07 09:57:08
matthijs@openttd.org
(svn r23907) -Fix: [Makefile] Let "make clean --dry-run" not delete Makefiles.
1 file changed with 7 insertions and 0 deletions:
0 comments (0 inline, 0 general)
Makefile.in
Show inline comments
 
@@ -126,6 +126,13 @@ lang:
 
mrproper:
 
	@for dir in $(DIRS); do \
 
		$(MAKE) -C $$dir mrproper; \
 
	done
 
# Don't be tempted to merge these two for loops. Doing that breaks make
 
# --dry-run, since make has this "feature" that it always runs commands
 
# containing $(MAKE), even when --dry-run is passed. The objective is of
 
# course to also get a dry-run of submakes, but make is not smart enough
 
# to see that a for loop runs both a submake and an actual command.
 
	@for dir in $(DIRS); do \
 
		rm -f $$dir/Makefile; \
 
	done
 
	$(Q)rm -rf objs
0 comments (0 inline, 0 general)