summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2013-11-05 23:28:20 (GMT)
committer Peter Korsgaard <peter@korsgaard.com>2013-11-06 22:24:47 (GMT)
commit971faf828d8d243141b7a689a787f335864e37c0 (patch)
tree5d69c8ea105f8cd18de7fd776f8c4ff298b43859
parent7f02c73f8d98823a6ccd7abaca8f2af6e6bf8315 (diff)
downloadbuildroot-971faf828d8d243141b7a689a787f335864e37c0.tar.gz
buildroot-971faf828d8d243141b7a689a787f335864e37c0.tar.bz2
Makefile: fix out-of-tree builds with multiple targets with 'all'
For out-of-tree builds, this use-case fails to build: $ make clean all This is because 'all' is filtered-out in the Makefile wrapper, since the wrapper itself has a 'all' target. The 'all' target is just the usual naming for the default target in a Makefile. In fact, the first target is the default one, so we can name it whatever we want. Rename the Makefile wrapper 'all' target to avoid name-clashing. Fixes #6644. Reported-by: Ryan Barnett <rjbarnet@rockwellcollins.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Ryan Barnett <rjbarnet@rockwellcollins.com> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Tested-by: Ryan Barnett <rjbarnet@rockwellcollins.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rwxr-xr-xsupport/scripts/mkmakefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/support/scripts/mkmakefile b/support/scripts/mkmakefile
index cef2ec7..27b1507 100755
--- a/support/scripts/mkmakefile
+++ b/support/scripts/mkmakefile
@@ -32,16 +32,16 @@ MAKEFLAGS += --no-print-directory
.PHONY: all \$(MAKECMDGOALS)
-all := \$(filter-out all Makefile,\$(MAKECMDGOALS))
+all := \$(filter-out Makefile,\$(MAKECMDGOALS))
-all:
+_all:
\$(MAKE) \$(MAKEARGS) \$(all)
Makefile:;
-\$(all): all
+\$(all): _all
@:
-%/: all
+%/: _all
@:
EOF