From 01eb3cf5990bbf95101c4a96d982bd0a2ee75dfa Mon Sep 17 00:00:00 2001 From: nbd Date: Sun, 5 Jun 2005 13:32:04 +0000 Subject: add a rebuild and a default mostlyclean target to packages. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1145 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- openwrt/package/rules.mk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'openwrt/package/rules.mk') 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)),) -- cgit v1.2.3