- $(if $(SOURCE_DATE_EPOCH),sed -i "s/Installed-Time: .*/Installed-Time: $(SOURCE_DATE_EPOCH)/" $(TARGET_DIR)/usr/lib/opkg/status)
- @-find $(TARGET_DIR) -name CVS | $(XARGS) rm -rf
- @-find $(TARGET_DIR) -name .svn | $(XARGS) rm -rf
- @-find $(TARGET_DIR) -name .git | $(XARGS) rm -rf
- @-find $(TARGET_DIR) -name '.#*' | $(XARGS) rm -f
- rm -f $(TARGET_DIR)/usr/lib/opkg/info/*.postinst*
- rm -f $(TARGET_DIR)/usr/lib/opkg/info/*.prerm*
- $(if $(CONFIG_CLEAN_IPKG),rm -rf $(TARGET_DIR)/usr/lib/opkg)
- $(mklibs)
+ $(if $(SOURCE_DATE_EPOCH),sed -i "s/Installed-Time: .*/Installed-Time: $(SOURCE_DATE_EPOCH)/" $(1)/usr/lib/opkg/status)
+ @-find $(1) -name CVS | $(XARGS) rm -rf
+ @-find $(1) -name .svn | $(XARGS) rm -rf
+ @-find $(1) -name .git | $(XARGS) rm -rf
+ @-find $(1) -name '.#*' | $(XARGS) rm -f
+ rm -f $(1)/usr/lib/opkg/info/*.postinst*
+ rm -f $(1)/usr/lib/opkg/info/*.prerm*
+ $(if $(CONFIG_CLEAN_IPKG),rm -rf $(1)/usr/lib/opkg)
+ $(call mklibs,$(1))