summaryrefslogtreecommitdiffstats
path: root/package/libnl/libnl.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/libnl/libnl.mk')
-rw-r--r--package/libnl/libnl.mk14
1 files changed, 4 insertions, 10 deletions
diff --git a/package/libnl/libnl.mk b/package/libnl/libnl.mk
index 1a667468d..54b9ff276 100644
--- a/package/libnl/libnl.mk
+++ b/package/libnl/libnl.mk
@@ -8,15 +8,9 @@ LIBNL_VERSION = 1.1
LIBNL_SOURCE = libnl-$(LIBNL_VERSION).tar.gz
LIBNL_SITE = http://distfiles.gentoo.org/distfiles
LIBNL_INSTALL_STAGING = YES
-LIBNL_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
-$(eval $(call AUTOTARGETS,package,libnl))
-
-$(LIBNL_HOOK_POST_INSTALL): $(LIBNL_TARGET_INSTALL_TARGET)
- $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libnl.so*
- touch $@
-
-$(LIBNL_TARGET_UNINSTALL):
- $(call MESSAGE,"Uninstalling")
+define LIBNL_UNINSTALL_TARGET_CMDS
rm -f $(TARGET_DIR)/usr/lib/libnl.so*
- rm -f $(LIBNL_TARGET_INSTALL_TARGET) $(LIBNL_HOOK_POST_INSTALL)
+endef
+
+$(eval $(call AUTOTARGETS,package,libnl))