-$(PKG_IPK): $(PKG_IPK_DIR)/usr/sbin/cupsd
- $(SCRIPT_DIR)/make-ipkg-dir.sh $(PKG_IPK_DIR) $(PKG_NAME).control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH)
- rm -f $(PKG_IPK_DIR)/usr/bin/cups-config
- rm -f $(PKG_IPK_DIR)/usr/lib/*.a
- rm -f $(PKG_IPK_DIR)/usr/share/doc/cups/* || true
- rm -rf $(PKG_IPK_DIR)/usr/share/doc/cups/??
- rm -rf $(PKG_IPK_DIR)/usr/share/locale
- rm -rf $(PKG_IPK_DIR)/usr/share/cups/banners
- rm -rf $(PKG_IPK_DIR)/usr/share/cups/charsets
- rm -rf $(PKG_IPK_DIR)/usr/share/cups/fonts
- rm -rf $(PKG_IPK_DIR)/usr/share/cups/model
- rm -rf $(PKG_IPK_DIR)/usr/share/cups/data
- rm -rf $(PKG_IPK_DIR)/usr/share/cups/templates/??
- rm -rf $(PKG_IPK_DIR)/usr/include
- rm -rf $(PKG_IPK_DIR)/var
- rm -rf $(PKG_IPK_DIR)/etc/*.d
- $(STRIP) $(PKG_IPK_DIR)/usr/bin/*
- $(STRIP) $(PKG_IPK_DIR)/usr/lib/cups/backend/*
- $(STRIP) $(PKG_IPK_DIR)/usr/lib/cups/cgi-bin/*
- $(STRIP) $(PKG_IPK_DIR)/usr/lib/cups/daemon/*
- cp -a ./files/* $(PKG_IPK_DIR)/
- find $(PKG_IPK_DIR) -name CVS | xargs rm -rf
- $(IPKG_BUILD) $(PKG_IPK_DIR) $(PACKAGE_DIR)
+$(IPKG_CUPS):
+ cp -a $(PKG_INSTALL_DIR)/* $(IDIR_CUPS)/
+ rm -f $(IDIR_CUPS)/usr/bin/cups-config
+ rm -f $(IDIR_CUPS)/usr/lib/*.a
+ rm -f $(IDIR_CUPS)/usr/share/doc/cups/* || true
+ rm -rf $(IDIR_CUPS)/usr/share/doc/cups/??
+ rm -rf $(IDIR_CUPS)/usr/share/locale
+ rm -rf $(IDIR_CUPS)/usr/share/cups/banners
+ rm -rf $(IDIR_CUPS)/usr/share/cups/charsets
+ rm -rf $(IDIR_CUPS)/usr/share/cups/fonts
+ rm -rf $(IDIR_CUPS)/usr/share/cups/model
+ rm -rf $(IDIR_CUPS)/usr/share/cups/data
+ rm -rf $(IDIR_CUPS)/usr/share/cups/templates/??
+ rm -rf $(IDIR_CUPS)/usr/include
+ rm -rf $(IDIR_CUPS)/var
+ rm -rf $(IDIR_CUPS)/etc/*.d
+ $(STRIP) $(IDIR_CUPS)/usr/bin/*
+ $(STRIP) $(IDIR_CUPS)/usr/lib/cups/backend/*
+ $(STRIP) $(IDIR_CUPS)/usr/lib/cups/cgi-bin/*
+ $(STRIP) $(IDIR_CUPS)/usr/lib/cups/daemon/*
+ cp -a ./files/* $(IDIR_CUPS)/
+ find $(IDIR_CUPS) -name CVS | xargs rm -rf
+ $(IPKG_BUILD) $(IDIR_CUPS) $(PACKAGE_DIR)