From: Darrick J. Wong Date: Fri, 14 Feb 2025 18:47:14 +0000 (-0800) Subject: tools: add a Makefile X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=91d2880aa029e0cadb2ccdfda3bd2bc678a5a399;p=users%2Fhch%2Fxfstests-dev.git tools: add a Makefile Add a Makefile to the tools/ directory so that we can put helper scripts in there and have them installed at make install time. The makefile comes from a conversation that Zorro and I had over IRC, hence the RH copyright. Suggested-by: Zorro Lang Signed-off-by: "Darrick J. Wong" Reviewed-by: Zorro Lang Signed-off-by: Zorro Lang --- diff --git a/Makefile b/Makefile index f6f91a4dd..f955f0d3a 100644 --- a/Makefile +++ b/Makefile @@ -40,7 +40,7 @@ LDIRT += $(SRCTAR) endif LIB_SUBDIRS = include lib -TOOL_SUBDIRS = ltp src m4 common +TOOL_SUBDIRS = ltp src m4 common tools SUBDIRS = $(LIB_SUBDIRS) $(TOOL_SUBDIRS) $(TESTS_DIR) diff --git a/tools/Makefile b/tools/Makefile new file mode 100644 index 000000000..3ee532a7e --- /dev/null +++ b/tools/Makefile @@ -0,0 +1,17 @@ +# +# Copyright (c) 2025 Red Hat Inc. All Rights Reserved. +# + +TOPDIR = .. +include $(TOPDIR)/include/builddefs + +TOOLS_DIR = tools + +include $(BUILDRULES) + +default: + +install: default + $(INSTALL) -m 755 -d $(PKG_LIB_DIR)/$(TOOLS_DIR) + +install-dev install-lib: