diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2009-11-05 22:38:45 +0100 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2009-11-06 09:39:46 +0100 |
commit | 34133b78484f2cb3ef5b42943143758933569193 (patch) | |
tree | 3bd410d853bb39f4f01d49cd372c0b9bc1a4627e /rules/other | |
parent | 7b7841b19874458787623750adcf2de1d8fa5b80 (diff) | |
download | ptxdist-34133b78484f2cb3ef5b42943143758933569193.tar.gz ptxdist-34133b78484f2cb3ef5b42943143758933569193.tar.xz |
phony: reworked PHONY handling
Add tagets that should be phony to the variable PHONY, e.g.:
PHONY += world
for static pattern rules you may use the FORCE target, e.g.:
$(STATEDIR)/%.tags: FORCE
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'rules/other')
-rw-r--r-- | rules/other/Toplevel.make | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/rules/other/Toplevel.make b/rules/other/Toplevel.make index d3b1337f4..d270e717b 100644 --- a/rules/other/Toplevel.make +++ b/rules/other/Toplevel.make @@ -7,6 +7,7 @@ SHELL=bash export SHELL +PHONY := all FORCE all: @echo "ptxdist: error: please use 'ptxdist' instead of calling make directly." @exit 1 @@ -97,8 +98,10 @@ endif # just the "print" target # ---------------------------------------------------------------------------- -print-%: +print-%: FORCE @[ "$(origin $(*))" != "undefined" ] && echo "$($(*))" +.PHONY: $(PHONY) + # vim600:set foldmethod=marker: # vim600:set syntax=make: |