aboutsummaryrefslogtreecommitdiffstats
path: root/package/rules.mk
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
commit4218ae504ae5c231951b5bee0c3f7ede2f70a9cc (patch)
tree5629c762aecf5c108dff21eff375ca434ccc3413 /package/rules.mk
parentd76fc87d2245efcae0d3890c6474335a6deb36fc (diff)
downloadupstream-4218ae504ae5c231951b5bee0c3f7ede2f70a9cc.tar.gz
upstream-4218ae504ae5c231951b5bee0c3f7ede2f70a9cc.tar.bz2
upstream-4218ae504ae5c231951b5bee0c3f7ede2f70a9cc.zip
add a rebuild and a default mostlyclean target to packages.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1145 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/rules.mk')
-rw-r--r--package/rules.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/package/rules.mk b/package/rules.mk
index 1ca03b7593..53b868d1ac 100644
--- a/package/rules.mk
+++ b/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)),)