]> git.ipfire.org Git - thirdparty/lm-sensors.git/commitdiff
Install troubleshooting tools
authorMichal Suchanek <msuchanek@suse.de>
Wed, 17 Jan 2024 17:56:57 +0000 (18:56 +0100)
committerMichal Suchanek <msuchanek@suse.de>
Wed, 17 Jan 2024 18:39:46 +0000 (19:39 +0100)
Makefile
prog/debug/Module.mk [new file with mode: 0644]

index a5c038a310ddbc4d6a5584c8c5def8b255ee9b5f..af301848145c358edeb79890ace480e6be381c73 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -115,7 +115,7 @@ BUILD_SHARED_LIB := 1
 # to do this.
 
 # The subdirectories we need to build things in
-SRCDIRS := lib prog/detect prog/pwm \
+SRCDIRS := lib prog/debug prog/detect prog/pwm \
            prog/sensors ${PROG_EXTRA:%=prog/%} etc
 # Only build isadump and isaset on x86 machines.
 ifneq (,$(findstring $(ARCH), i386 i486 i586 i686 x86_64))
diff --git a/prog/debug/Module.mk b/prog/debug/Module.mk
new file mode 100644 (file)
index 0000000..9efc00d
--- /dev/null
@@ -0,0 +1,41 @@
+#  Module.mk
+#  Copyright (c) 1998, 1999  Frodo Looijaard <frodol@dds.nl>
+#
+#  This program is free software; you can redistribute it and/or modify
+#  it under the terms of the GNU General Public License as published by
+#  the Free Software Foundation; either version 2 of the License, or
+#  (at your option) any later version.
+#
+#  This program is distributed in the hope that it will be useful,
+#  but WITHOUT ANY WARRANTY; without even the implied warranty of
+#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#  GNU General Public License for more details.
+#
+#  You should have received a copy of the GNU General Public License
+#  along with this program; if not, write to the Free Software
+#  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+#  MA 02110-1301 USA.
+
+MODULE_DIR := prog/debug
+PROGDEBUGDIR := $(MODULE_DIR)
+
+PROGDEBUGMAN1DIR := $(MANDIR)/man1
+PROGDEBUGMAN1FILES := $(MODULE_DIR)/sensors-find-driver.1
+PROGDEBUGTARGETS := $(MODULE_DIR)/sensors-find-driver
+
+PROGDEBUGMAN1FILES += $(MODULE_DIR)/sensors-save.1
+PROGDEBUGTARGETS += $(MODULE_DIR)/sensors-save
+
+REMOVEDEBUGBIN := $(patsubst $(MODULE_DIR)/%,$(DESTDIR)$(BINDIR)/%,$(PROGDEBUGTARGETS))
+REMOVEDEBUGMAN := $(patsubst $(MODULE_DIR)/%,$(DESTDIR)$(PROGDEBUGMAN1DIR)/%,$(PROGDEBUGMAN1FILES))
+
+install-prog-debug: $(PROGDEBUGTARGETS)
+       $(MKDIR) $(DESTDIR)$(BINDIR) $(DESTDIR)$(PROGDEBUGMAN1DIR)
+       $(INSTALL) -m 755 $(PROGDEBUGTARGETS) $(DESTDIR)$(BINDIR)
+       $(INSTALL) -m 644 $(PROGDEBUGMAN1FILES) $(DESTDIR)$(PROGDEBUGMAN1DIR)
+
+user_install :: install-prog-debug
+
+user_uninstall::
+       $(RM) $(REMOVEDEBUGBIN)
+       $(RM) $(REMOVEDEBUGMAN)