From: Felix Fietkau Date: Sun, 5 Jun 2005 13:32:04 +0000 (+0000) Subject: add a rebuild and a default mostlyclean target to packages. X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=a23c1271f0cc94b710c344f5236c5a8762f1d84b;p=openwrt%2Fsvn-archive%2Farchive.git add a rebuild and a default mostlyclean target to packages. SVN-Revision: 1145 --- diff --git a/openwrt/package/rules.mk b/openwrt/package/rules.mk index 1ca03b7593..53b868d1ac 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)),)