+install-targets: $(INSTALL_PACKAGES)
+install:
+ rm -rf $(BUILD_DIR)/root
+ $(MAKE) install-targets
+ $(MAKE) preconfig
+ @if [ -d $(TOPDIR)/files ]; then \
+ $(CP) $(TOPDIR)/files/. $(BUILD_DIR)/root; \
+ fi
+ @( \
+ cd $(BUILD_DIR)/root; \
+ for script in ./etc/init.d/*; do \
+ grep '#!/bin/sh /etc/rc.common' $$script >/dev/null || continue; \
+ IPKG_INSTROOT=$(BUILD_DIR)/root $(which bash) ./etc/rc.common $$script enable; \
+ done || true \
+ )
+ @-find $(BUILD_DIR)/root -name CVS | xargs -r rm -rf
+ @-find $(BUILD_DIR)/root -name .svn | xargs -r rm -rf
+ @-find $(BUILD_DIR)/root -name '.#*' | xargs -r rm -f
+
+index: $(PACKAGE_DIR)/Packages
+
+$(PACKAGE_DIR)/Packages: $(PACKAGE_DIR)/*.ipk
+ (cd $(PACKAGE_DIR); $(SCRIPT_DIR)/ipkg-make-index.sh . > Packages)
+
+symlinks:
+ ../scripts/feeds.sh $(CONFIG_SOURCE_FEEDS)