summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2005-06-05 13:32:04 +0000
committerFelix Fietkau <nbd@openwrt.org>2005-06-05 13:32:04 +0000
commitf71e84a9ff68df9c30c0d93ef947cb0c96f0dbb4 (patch)
tree4e243c26190c71d5a5033a1ca4138c5384f81d12
parenta3f771d4c42e290529dfa8259d302fc48c8e5905 (diff)
downloadmtk-20170518-f71e84a9ff68df9c30c0d93ef947cb0c96f0dbb4.zip
mtk-20170518-f71e84a9ff68df9c30c0d93ef947cb0c96f0dbb4.tar.gz
mtk-20170518-f71e84a9ff68df9c30c0d93ef947cb0c96f0dbb4.tar.bz2
add a rebuild and a default mostlyclean target to packages.
SVN-Revision: 1145
-rw-r--r--openwrt/package/rules.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/openwrt/package/rules.mk b/openwrt/package/rules.mk
index 1ca03b7..53b868d 100644
--- a/openwrt/package/rules.mk
+++ b/openwrt/package/rules.mk
@@ -27,7 +27,12 @@ $$(INFO_$(1)): $$(IPKG_$(1))
$(2)-clean:
rm -f $$(IPKG_$(1))
clean: $(2)-clean
-
+mostlyclean:
+rebuild: mostlyclean
+ if [ -f $(PKG_BUILD_DIR)/.built ]; then \
+ $(MAKE) clean; \
+ fi
+ $(MAKE) compile
endef
ifneq ($(strip $(PKG_SOURCE)),)