aboutsummaryrefslogtreecommitdiffstats
path: root/include/package.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2017-01-19 12:41:59 +0100
committerFelix Fietkau <nbd@nbd.name>2017-01-19 13:30:22 +0100
commit5aa03e16a732e81a989a9605706dc8c6bb95d03f (patch)
tree878fdd7228d00d6fe967938817be02d5ac4feeb0 /include/package.mk
parentbc73a7fd98b2c2c20cc2a796d625e671ca00eccf (diff)
downloadupstream-5aa03e16a732e81a989a9605706dc8c6bb95d03f.tar.gz
upstream-5aa03e16a732e81a989a9605706dc8c6bb95d03f.tar.bz2
upstream-5aa03e16a732e81a989a9605706dc8c6bb95d03f.zip
build: disable CONFIG_AUTOREMOVE for packages/tools where QUILT is used
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'include/package.mk')
-rw-r--r--include/package.mk12
1 files changed, 7 insertions, 5 deletions
diff --git a/include/package.mk b/include/package.mk
index 6e24788a58..95b5f76dc3 100644
--- a/include/package.mk
+++ b/include/package.mk
@@ -96,6 +96,8 @@ include $(INCLUDE_DIR)/package-ipkg.mk
include $(INCLUDE_DIR)/package-bin.mk
include $(INCLUDE_DIR)/autotools.mk
+_pkg_target:=$(if $(QUILT),,.)
+
override MAKEFLAGS=
CONFIG_SITE:=$(INCLUDE_DIR)/site/$(ARCH)
CUR_MAKEFILE:=$(filter-out Makefile,$(firstword $(MAKEFILE_LIST)))
@@ -204,13 +206,13 @@ define Build/CoreTargets
touch $$@
ifdef Build/InstallDev
- .compile: $(STAMP_INSTALLED)
+ $(_pkg_target)compile: $(STAMP_INSTALLED)
endif
- .prepare: $(STAMP_PREPARED)
- .configure: $(STAMP_CONFIGURED)
- .dist: $(STAMP_CONFIGURED)
- .distcheck: $(STAMP_CONFIGURED)
+ $(_pkg_target)prepare: $(STAMP_PREPARED)
+ $(_pkg_target)configure: $(STAMP_CONFIGURED)
+ $(_pkg_target)dist: $(STAMP_CONFIGURED)
+ $(_pkg_target)distcheck: $(STAMP_CONFIGURED)
ifneq ($(CONFIG_AUTOREMOVE),)
compile: