mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 06:15:04 +00:00
(svn r23907) -Fix: [Makefile] Let "make clean --dry-run" not delete Makefiles.
This commit is contained in:
parent
446758872c
commit
1d937e8581
@ -126,6 +126,13 @@ lang:
|
|||||||
mrproper:
|
mrproper:
|
||||||
@for dir in $(DIRS); do \
|
@for dir in $(DIRS); do \
|
||||||
$(MAKE) -C $$dir mrproper; \
|
$(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; \
|
rm -f $$dir/Makefile; \
|
||||||
done
|
done
|
||||||
$(Q)rm -rf objs
|
$(Q)rm -rf objs
|
||||||
|
Loading…
Reference in New Issue
Block a user