summaryrefslogtreecommitdiffstats
path: root/openwrt
diff options
context:
space:
mode:
Diffstat (limited to 'openwrt')
-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 1ca03b759..53b868d1a 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)),)