diff --git a/Makefile b/Makefile index a5c038a3..af301848 100644 --- 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 index 00000000..9efc00d8 --- /dev/null +++ b/prog/debug/Module.mk @@ -0,0 +1,41 @@ +# Module.mk +# Copyright (c) 1998, 1999 Frodo Looijaard +# +# 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)