From 1a7da64fa571c5c3ef461c3fef97607ae78071bf Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Mon, 26 Nov 2007 12:23:13 +0000 Subject: [PATCH] Create target file at end of rule so it gets rerun on failure on any of the sub steps (thanks Ulf). --- package/avahi/avahi.mk | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/package/avahi/avahi.mk b/package/avahi/avahi.mk index fcdfd7db27..1083d9a526 100644 --- a/package/avahi/avahi.mk +++ b/package/avahi/avahi.mk @@ -147,32 +147,31 @@ $(AVAHI_DIR)/.installed: $(AVAHI_DIR)/.compiled touch $@ $(TARGET_DIR)/usr/sbin/avahi-autoipd: $(AVAHI_DIR)/.installed - cp $(STAGING_DIR)/usr/sbin/avahi-autoipd \ - $(TARGET_DIR)/usr/sbin/avahi-autoipd mkdir -p $(TARGET_DIR)/etc/avahi mkdir -p $(TARGET_DIR)/var/lib - ln -sf /tmp/avahi-autoipd $(TARGET_DIR)/var/lib/avahi-autoipd cp -af $(STAGING_DIR)/etc/avahi/avahi-autoipd.action $(TARGET_DIR)/etc/avahi/ cp -af $(BASE_DIR)/package/avahi/busybox-udhcpc-default.script $(TARGET_DIR)/usr/share/udhcpc/default.script - cp -af $(BASE_DIR)/package/avahi/S05avahi-setup.sh $(TARGET_DIR)/etc/init.d/ chmod 0755 $(TARGET_DIR)/usr/share/udhcpc/default.script + cp -af $(BASE_DIR)/package/avahi/S05avahi-setup.sh $(TARGET_DIR)/etc/init.d/ + cp $(STAGING_DIR)/usr/sbin/avahi-autoipd $(TARGET_DIR)/usr/sbin/avahi-autoipd + ln -sf /tmp/avahi-autoipd $(TARGET_DIR)/var/lib/avahi-autoipd $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $@ $(TARGET_DIR)/usr/sbin/avahi-daemon: $(AVAHI_DIR)/.installed - cp $(STAGING_DIR)/usr/sbin/avahi-daemon \ - $(TARGET_DIR)/usr/sbin/avahi-daemon - cp -dpf $(STAGING_DIR)/usr/lib/libavahi-*.so* $(TARGET_DIR)/usr/lib/ mkdir -p $(TARGET_DIR)/etc/avahi/services + cp -dpf $(STAGING_DIR)/usr/lib/libavahi-*.so* $(TARGET_DIR)/usr/lib/ + $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libavahi-*.so* cp -af $(STAGING_DIR)/etc/avahi/avahi-daemon.conf $(TARGET_DIR)/etc/avahi/ cp -af $(BASE_DIR)/package/avahi/S50avahi-daemon $(TARGET_DIR)/etc/init.d/ - $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $@ - $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libavahi-*.so* ifeq ($(strip $(BR2_PACKAGE_DBUS)),y) cp -dpf $(STAGING_DIR)/usr/bin/avahi-* $(TARGET_DIR)/usr/bin $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/bin/avahi-* cp -r $(STAGING_DIR)/etc/dbus-1/system.d/avahi-* \ $(TARGET_DIR)/etc/dbus-1/system.d/ endif + cp $(STAGING_DIR)/usr/sbin/avahi-daemon \ + $(TARGET_DIR)/usr/sbin/avahi-daemon + $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $@ avahi: uclibc busybox libdaemon $(AVAHI_TARGETS) -- 2.30.2