fix rebuild, when mostlyclean fails
authorFelix Fietkau <nbd@openwrt.org>
Sun, 5 Jun 2005 14:22:06 +0000 (14:22 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 5 Jun 2005 14:22:06 +0000 (14:22 +0000)
SVN-Revision: 1148

openwrt/package/rules.mk

index 53b868d1aca14cb391f4a15c40cb43c77079133d..e5fe79e084d4dfc4058d7c3266a46678395aeaeb 100644 (file)
@@ -28,7 +28,8 @@ $(2)-clean:
        rm -f $$(IPKG_$(1))
 clean: $(2)-clean
 mostlyclean:
-rebuild: mostlyclean
+rebuild:
+       -$(MAKE) mostlyclean
        if [ -f $(PKG_BUILD_DIR)/.built ]; then \
                $(MAKE) clean; \
        fi
@@ -64,7 +65,6 @@ $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured
 $(PACKAGE_DIR):
        mkdir -p $@
 
-
 clean: 
        rm -rf $(PKG_BUILD_DIR)