libdnet: remove dnet-config script from TARGET_DIR
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 22 Dec 2010 17:22:49 +0000 (18:22 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 7 Mar 2011 21:22:31 +0000 (22:22 +0100)
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/libdnet/libdnet.mk

index eb67b055a5557580f1e62c6f271228a5a2d0f8af..6dfecf90c98af1ccc6cc0573a1baa66f07028908 100644 (file)
@@ -31,4 +31,12 @@ endef
 
 LIBDNET_POST_EXTRACT_HOOKS += LIBDNET_FIXUP_ACINCLUDE_M4
 
+define LIBDNET_REMOVE_CONFIG_SCRIPT
+       $(RM) -f $(TARGET_DIR)/usr/bin/dnet-config
+endef
+
+ifneq ($(BR2_HAVE_DEVFILES),y)
+LIBDNET_POST_INSTALL_TARGET_HOOKS += LIBDNET_REMOVE_CONFIG_SCRIPT
+endif
+
 $(eval $(call AUTOTARGETS,package,libdnet))