summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2021-11-01 12:35:43 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2021-11-01 15:16:20 +0100
commitc43037d2ecd33fdd09852d563829f8dfd18dc3af (patch)
treeacb0a9b39ebeefa4da252e74fa6683bde2205b72 /Makefile
parent536cee8cf98ea83d1be2468f02870e1ebf1ab0de (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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 17 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c7954e646..04d2c8b88 100644
--- a/Makefile
+++ b/Makefile
@@ -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}