summaryrefslogtreecommitdiff
path: root/openwrt/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-05-31 16:20:27 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-05-31 16:20:27 +0000
commit7773da2a8481bbe4b10fae7df75d760e8c381357 (patch)
treeccd06f62b6470dc29845eb71448375b4d8950abb /openwrt/package
parent3bcaa7384bb8cd5062724cce55cfa558b9e763c6 (diff)
downloadmtk-20170518-7773da2a8481bbe4b10fae7df75d760e8c381357.zip
mtk-20170518-7773da2a8481bbe4b10fae7df75d760e8c381357.tar.gz
mtk-20170518-7773da2a8481bbe4b10fae7df75d760e8c381357.tar.bz2
only use the .dev-installed target if Build/InstallDev is defined - avoids unnecessary builds of deselected packages
SVN-Revision: 3866
Diffstat (limited to 'openwrt/package')
-rw-r--r--openwrt/package/rules.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/openwrt/package/rules.mk b/openwrt/package/rules.mk
index e2e0777..5d604c5 100644
--- a/openwrt/package/rules.mk
+++ b/openwrt/package/rules.mk
@@ -28,11 +28,11 @@ define Build/DefaultTargets
$(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured
$(call Build/Compile)
touch $$@
-
+
$(PKG_BUILD_DIR)/.dev-installed: $(PKG_BUILD_DIR)/.built
$(call Build/InstallDev)
touch $$@
-
+
package-clean: FORCE
$(call Build/Clean)
$(call Build/UninstallDev)
@@ -263,7 +263,11 @@ else
prepare: $(PKG_BUILD_DIR)/.prepared
configure: $(PKG_BUILD_DIR)/.configured
+ifdef Build/InstallDev
compile-targets: $(PKG_BUILD_DIR)/.dev-installed
+else
+ compile-targets:
+endif
compile: compile-targets
install-targets: