- CC=$(TARGET_CC) \
- CFLAGS="$(TARGET_CFLAGS)" \
- all
-
-$(PKG_IPK): $(PKG_BUILD_DIR)/$(PKG_NAME)
- mkdir -p $(PKG_IPK_DIR)/usr/sbin
- cp -a ./ipkg/* $(PKG_IPK_DIR)/
- $(SCRIPT_DIR)/make-ipkg-dir.sh $(PKG_IPK_DIR) $(PKG_NAME).control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH)
- chmod +x $(PKG_IPK_DIR)/etc/init.d/*
- cp $(PKG_BUILD_DIR)/setserial $(PKG_IPK_DIR)/usr/sbin/
- $(STRIP) $(PKG_IPK_DIR)/usr/sbin/*
- mkdir -p $(PACKAGE_DIR)
- find $(PKG_IPK_DIR) -name CVS | xargs rm -rf
- $(IPKG_BUILD) $(PKG_IPK_DIR) $(PACKAGE_DIR)
-
-$(IPKG_STATE_DIR)/info/setserial.list: $(PKG_IPK)
- $(IPKG) install $(PKG_IPK)
-
-source: $(DL_DIR)/$(PKG_SOURCE)
-prepare: $(PKG_BUILD_DIR)/.unpacked
-compile: $(PKG_IPK)
-install: $(IPKG_STATE_DIR)/info/$(PKG_NAME).list
-
-clean:
- rm -rf $(PKG_BUILD_DIR)
- rm -f $(PKG_IPK)
+ all
+ touch $@
+
+$(IPKG_SETSERIAL):
+ install -d -m0755 $(IDIR_SETSERIAL)/etc/init.d
+ install -m0755 ./files/serial.init $(IDIR_SETSERIAL)/etc/init.d/S15serial
+ install -d -m0755 $(IDIR_SETSERIAL)/usr/sbin
+ install -m0755 $(PKG_BUILD_DIR)/setserial $(IDIR_SETSERIAL)/usr/sbin/
+ $(RSTRIP) $(IDIR_SETSERIAL)
+ $(IPKG_BUILD) $(IDIR_SETSERIAL) $(PACKAGE_DIR)