summaryrefslogtreecommitdiffstats
path: root/package/pkg-generic.mk
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-03-29 19:33:28 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-04-06 11:30:39 +0200
commit97eeb54598cf02d8b12752edd6d96a30b7a00be1 (patch)
treec8cf7899e8cd66a3e9ca007f93c5fa46927ec845 /package/pkg-generic.mk
parent3831c976d0bc0df47429894cc5dfcf5dc69d5366 (diff)
downloadbuildroot-97eeb54598cf02d8b12752edd6d96a30b7a00be1.tar.gz
buildroot-97eeb54598cf02d8b12752edd6d96a30b7a00be1.zip
pkg-generic: declare phony targets as such
This commit improves the pkg-generic package infrastructure so that it declares all the <pkg>-<something> targets as PHONY, which they actually are. [Thomas: - add some missing phony targets, noticed by Yann E. Morin; - put one target per line, order alphabetically. Makes it easier to spot missing targets.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/pkg-generic.mk')
-rw-r--r--package/pkg-generic.mk30
1 files changed, 30 insertions, 0 deletions
diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk
index 9070f8b312..f77aab27d5 100644
--- a/package/pkg-generic.mk
+++ b/package/pkg-generic.mk
@@ -777,6 +777,36 @@ ifneq ($$(call suitable-extractor,$$($(2)_SOURCE)),$$(XZCAT))
DL_TOOLS_DEPENDENCIES += $$(firstword $$(call suitable-extractor,$$($(2)_SOURCE)))
endif
+# Ensure all virtual targets are PHONY. Listed alphabetically.
+.PHONY: $(1) \
+ $(1)-all-external-deps \
+ $(1)-all-legal-info \
+ $(1)-all-source \
+ $(1)-build \
+ $(1)-clean-for-rebuild \
+ $(1)-clean-for-reconfigure \
+ $(1)-clean-for-reinstall \
+ $(1)-configure \
+ $(1)-depends \
+ $(1)-dirclean \
+ $(1)-external-deps \
+ $(1)-extract \
+ $(1)-graph-depends \
+ $(1)-install \
+ $(1)-install-host \
+ $(1)-install-images \
+ $(1)-install-staging \
+ $(1)-install-target \
+ $(1)-legal-info \
+ $(1)-patch \
+ $(1)-rebuild \
+ $(1)-reconfigure \
+ $(1)-reinstall \
+ $(1)-rsync \
+ $(1)-show-depends \
+ $(1)-show-version \
+ $(1)-source
+
endif # $(2)_KCONFIG_VAR
endef # inner-generic-package
OpenPOWER on IntegriCloud