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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Darrick J. Wong <djwong@xxxxxxxxxx>

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@xxxxxxxxxx>
Signed-off-by: "Darrick J. Wong" <djwong@xxxxxxxxxx>
---
 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:




[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux