summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Niebel <Markus.Niebel@tq-group.com>2017-03-09 11:16:33 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2017-03-09 15:43:25 +0100
commita2e1ec22cee6a0cb9aed41dd8ad81baf62dfcf45 (patch)
tree3a0a160ba9069d14462d09e88a3da068f5d7138c
parent6e3d80a45f3a07133a5096704d432866f6e4cdf5 (diff)
downloadptxdist-a2e1ec22cee6a0cb9aed41dd8ad81baf62dfcf45.tar.gz
ptxdist-a2e1ec22cee6a0cb9aed41dd8ad81baf62dfcf45.tar.xz
ptxdist: Toplevel.make: make ptxdist print work again for make 3.xptxdist-2017.03.0
The changed print rule broke most of the print functionality for make 3.x resulting in no output / error return. Splitting the combinded rule into two targets seems to fix this. Signed-off-by: Markus Niebel <Markus.Niebel@tq-group.com> [mol: add make version to the commit message and fix print-%] Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/other/Toplevel.make6
1 files changed, 5 insertions, 1 deletions
diff --git a/rules/other/Toplevel.make b/rules/other/Toplevel.make
index d8c9fc36b..952a17b7b 100644
--- a/rules/other/Toplevel.make
+++ b/rules/other/Toplevel.make
@@ -107,10 +107,14 @@ include $(PTX_DGEN_DEPS_POST)
# just the "print" target
# ----------------------------------------------------------------------------
-print-% /print-%: FORCE
+/print-%: FORCE
$(if $(filter k,$(MAKEFLAGS)),,$($(if $(filter undefined,$(origin $(*))),$(error $(*) undefined))))
@echo "$(if $(filter 1,$(PTXDIST_VERBOSE)),$(*)=)$($(*))"
+# for backwards compatibility
+print-%: /print-%
+ @:
+
.PHONY: $(PHONY)
# vim600:set foldmethod=marker: