diff options
author | Phil Sutter <phil@nwl.cc> | 2021-11-01 12:35:43 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2021-11-01 15:16:20 +0100 |
commit | c43037d2ecd33fdd09852d563829f8dfd18dc3af (patch) | |
tree | acb0a9b39ebeefa4da252e74fa6683bde2205b72 | |
parent | 536cee8cf98ea83d1be2468f02870e1ebf1ab0de (diff) |
Makefile: Declare accepted targets as PHONY
Without this, a call to 'make package=foo package' won't have the
desired effect since the directory named 'package' fulfills the
requirement.
Signed-off-by: Phil Sutter <phil@nwl.cc>
-rw-r--r-- | Makefile | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -4,5 +4,21 @@ # GNU make and BSD make compatible make file wrapper MAKECMDGOALS+= ${.TARGETS} -all v allmodconfig allnoconfig allyesconfig help pkg-help dev-help targethelp kernelconfig savekconfig image menuconfig defconfig oldconfig download clean cleankernel cleansystem cleandir distclean hostclean hostpackage fetch package extract patch dep menu newpackage host-update-patches update-patches info: +PHONY_TARGETS= all v \ + allmodconfig allnoconfig allyesconfig \ + help pkg-help dev-help targethelp \ + kernelconfig savekconfig \ + image \ + menuconfig defconfig oldconfig \ + download \ + clean cleankernel cleansystem cleandir distclean hostclean \ + hostpackage fetch package extract patch \ + dep menu \ + newpackage \ + host-update-patches update-patches \ + info + +${PHONY_TARGETS}: @./scripts/prereq.sh ${MAKECMDGOALS} + +.PHONY: ${PHONY_TARGETS} |