build package index in sdk (fixes #51)
authorFelix Fietkau <nbd@openwrt.org>
Mon, 12 Dec 2005 00:07:56 +0000 (00:07 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 12 Dec 2005 00:07:56 +0000 (00:07 +0000)
SVN-Revision: 2628

openwrt/package/sdk/files/Makefile.sdk

index b4a3010be482d466317fa282349882636a64d654..6d5f61ad1118bce69c005504348e56e982f3db50 100644 (file)
@@ -12,7 +12,7 @@ PACKAGES_PREPARE:=$(foreach package,$(PACKAGES),$(package)-prepare)
 PACKAGES_COMPILE:=$(foreach package,$(PACKAGES),$(package)-compile)
 PACKAGES_CLEAN:=$(foreach package,$(PACKAGES),$(package)-clean)
 
-all: compile
+all: compile package_index
 compile: $(PACKAGES_COMPILE)
 clean: $(PACKAGES_CLEAN)
        rm -rf $(BUILD_DIR)
@@ -34,3 +34,9 @@ distclean: clean
 $(BUILD_DIR):
        mkdir -p $@
        mkdir -p $(DL_DIR)
+       
+package_index:
+       (cd $(PACKAGE_DIR); \
+               $(STAGING_DIR)/usr/bin/ipkg-make-index . > Packages \
+       )
+