only rebuild the package index when the *.ipk files have changed
[librecmc/librecmc.git] / openwrt / package / Makefile
index 629ce88109924dd3e1a77ebb0e0b6af0680df4cc..c2015b3a411ec9d6736805a7ac842861927f1976 100644 (file)
@@ -55,3 +55,8 @@ install:
        rm -rf $(BUILD_DIR)/root
        $(MAKE) install-targets
 
+index: $(PACKAGE_DIR)/Packages
+
+$(PACKAGE_DIR)/Packages: $(PACKAGE_DIR)/*.ipk
+       (cd $(PACKAGE_DIR); $(STAGING_DIR)/usr/bin/ipkg-make-index . > Packages)
+