diff options
author | matthijs <matthijs@openttd.org> | 2012-02-07 09:57:08 +0000 |
---|---|---|
committer | matthijs <matthijs@openttd.org> | 2012-02-07 09:57:08 +0000 |
commit | 1d937e85813611cb8d5023e082d8ad561e448208 (patch) | |
tree | ed1f27b9acedb7c9de26fb59219e15d3ca18d598 | |
parent | 446758872c8b0d9e1eb48c6ff5e51059e8a1926c (diff) | |
download | openttd-1d937e85813611cb8d5023e082d8ad561e448208.tar.xz |
(svn r23907) -Fix: [Makefile] Let "make clean --dry-run" not delete Makefiles.
-rw-r--r-- | Makefile.in | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in index 1dfcaa54f..d46108695 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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 |