X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/522e0c7c732b8727285a47599384bfe2f46bdb16..d3408c1ce9d67f9750f39222db6aa85bec48f881:/package/rules.mk diff --git a/package/rules.mk b/package/rules.mk index 1ca03b759..e5fe79e08 100644 --- a/package/rules.mk +++ b/package/rules.mk @@ -27,7 +27,13 @@ $$(INFO_$(1)): $$(IPKG_$(1)) $(2)-clean: rm -f $$(IPKG_$(1)) clean: $(2)-clean - +mostlyclean: +rebuild: + -$(MAKE) mostlyclean + if [ -f $(PKG_BUILD_DIR)/.built ]; then \ + $(MAKE) clean; \ + fi + $(MAKE) compile endef ifneq ($(strip $(PKG_SOURCE)),) @@ -59,7 +65,6 @@ $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured $(PACKAGE_DIR): mkdir -p $@ - clean: rm -rf $(PKG_BUILD_DIR)