2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-30 22:05:11 +00:00

Only install dmidecode if not existing or if older than our

source file. We are not the authority for dmidecode and we
        are not up-to-date either.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1866 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2003-07-07 10:44:29 +00:00
parent 286c1e8745
commit 66d5b66267

View File

@@ -26,7 +26,7 @@ PROGDETECTDIR := $(MODULE_DIR)
PROGDETECTTARGETS := $(MODULE_DIR)/i2cdetect $(MODULE_DIR)/dmidecode
PROGDETECTSOURCES := $(MODULE_DIR)/i2cdetect.c $(MODULE_DIR)/dmidecode.c
PROGDETECTSBININSTALL := $(MODULE_DIR)/sensors-detect \
$(MODULE_DIR)/i2cdetect $(MODULE_DIR)/dmidecode
$(MODULE_DIR)/i2cdetect
# Include all dependency files. We use '.rd' to indicate this will create
# executables.
@@ -38,6 +38,9 @@ user :: all-prog-detect
install-prog-detect: all-prog-detect
mkdir -p $(DESTDIR)$(SBINDIR)
$(INSTALL) -o root -g root -m 755 $(PROGDETECTSBININSTALL) $(DESTDIR)$(SBINDIR)
if [ ! -e $(DESTDIR)$(SBINDIR)/dmidecode -o $(DESTDIR)$(SBINDIR)/dmidecode -ot $(PROGDETECTDIR)/dmidecode.c ] ; then \
$(INSTALL) -o root -g root -m 755 $(PROGDETECTDIR)/dmidecode $(DESTDIR)$(SBINDIR) ; \
fi
user_install :: install-prog-detect
clean-prog-detect: