[openwrt/openwrt] tools: util-linux: use standard make install/uninstall
LEDE Commits
lede-commits at lists.infradead.org
Wed Jun 26 02:21:09 PDT 2024
robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/fb99a8d2e6b3e2a872c8246fa294ac9b0c5f4d11
commit fb99a8d2e6b3e2a872c8246fa294ac9b0c5f4d11
Author: Robert Marko <robimarko at gmail.com>
AuthorDate: Tue Jun 25 17:49:43 2024 +0200
tools: util-linux: use standard make install/uninstall
Instead of manually installing the binaries and removing them, we can now
simply rely on standard make install/uninstall as we are only building
tools we want to use.
This will be especially important when we start building libraries in
util-linux.
Link: https://github.com/openwrt/openwrt/pull/15806
Signed-off-by: Robert Marko <robimarko at gmail.com>
---
tools/util-linux/Makefile | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/tools/util-linux/Makefile b/tools/util-linux/Makefile
index cede793365..cfeb858400 100644
--- a/tools/util-linux/Makefile
+++ b/tools/util-linux/Makefile
@@ -44,12 +44,8 @@ HOST_CONFIGURE_ARGS += \
--without-python \
--without-cryptsetup
-define Host/Install
- $(INSTALL_BIN) $(HOST_BUILD_DIR)/hexdump $(STAGING_DIR_HOST)/bin/
-endef
-
define Host/Uninstall
- rm -f $(STAGING_DIR_HOST)/bin/hexdump
+ -$(call Host/Compile/Default,uninstall)
endef
$(eval $(call HostBuild))
More information about the lede-commits
mailing list