diff mbox series

[13.99/34] tools: add a Makefile separate session

Message ID 20250214211222.GE21799@frogsfrogsfrogs (mailing list archive)
State New
Headers show
Series [01/34] generic/476: fix fsstress process management | expand

Commit Message

Darrick J. Wong Feb. 14, 2025, 9:12 p.m. UTC
From: Darrick J. Wong <djwong@kernel.org>

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 <zlang@kernel.org>
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
---
 Makefile       |    2 +-
 tools/Makefile |   17 +++++++++++++++++
 2 files changed, 18 insertions(+), 1 deletion(-)
 create mode 100644 tools/Makefile

Comments

Zorro Lang Feb. 15, 2025, 1:16 p.m. UTC | #1
On Fri, Feb 14, 2025 at 01:12:22PM -0800, Darrick J. Wong wrote:
> From: Darrick J. Wong <djwong@kernel.org>
> 
> 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 <zlang@kernel.org>
> Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
> ---

Ahahah, I'm just going to send the patches (we've talked) to you. So looks
like you've solve the big problem :) Anyway, this change is good to me. Thanks
for doing this, I've tested this change.

Reviewed-by: Zorro Lang <zlang@redhat.com>

>  Makefile       |    2 +-
>  tools/Makefile |   17 +++++++++++++++++
>  2 files changed, 18 insertions(+), 1 deletion(-)
>  create mode 100644 tools/Makefile
> 
> diff --git a/Makefile b/Makefile
> index d4b77c1cd17787..e2e47ffc2e6e07 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 00000000000000..3ee532a7e563a9
> --- /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:
>
diff mbox series

Patch

diff --git a/Makefile b/Makefile
index d4b77c1cd17787..e2e47ffc2e6e07 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 00000000000000..3ee532a7e563a9
--- /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: