2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-30 13:57:41 +00:00

Makefile: Silent errors on missing dependency files.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4069 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2006-07-24 19:34:09 +00:00
parent adf4130ad1
commit dee46838bb
4 changed files with 8 additions and 12 deletions

View File

@@ -11,7 +11,8 @@ lm_sensors CHANGES file
Fix all memory leaks (yeah!)
Fix no sensors being reported as an error
Makefile: Don't grep autoconf.h on user-space targets
Makefile: Fix depmod on non-running kernel version
Fix depmod on non-running kernel version
Silent errors on missing dependency files
Module i2c-ali1535: Drop redundant semaphore (2.6 backport)
Module i2c-amd756-s4882: Improve static semaphore initialization
(2.6 backport)

View File

@@ -279,7 +279,7 @@ LIBCPPFLAGS := $(LIBCPPFLAGS) -DSYSFS_SUPPORT
endif
LIBCFLAGS := -fpic $(ALL_CFLAGS)
.PHONY: all clean install version package dep
.PHONY: all clean install version package
# Make all the default rule
all::
@@ -293,7 +293,7 @@ ifneq ($(MAKECMDGOALS),user_uninstall)
ifneq ($(MAKECMDGOALS),help)
ifneq ($(MAKECMDGOALS),package)
ifneq ($(MAKECMDGOALS),userpackage)
include $(INCLUDEFILES)
-include $(INCLUDEFILES)
endif
endif
endif
@@ -305,9 +305,6 @@ endif
MANPAGES := $(LIBMAN3FILES) $(LIBMAN5FILES) $(PROGDETECTMAN8FILES) $(PROGDUMPMAN8FILES) \
$(PROGSENSORSMAN1FILES) $(PROGPWMMAN8FILES) prog/sensord/sensord.8
# Making the dependency files - done automatically!
dep :
user ::
user_install::
@echo "*** Important note:"
@@ -395,7 +392,6 @@ help:
@echo ' user_uninstall: remove userspace programs'
@echo ' clean: cleanup'
@echo ' package: create a distribution package'
@echo 'Note: make dep is automatic'
$(LINUX)/.config:
@echo
@@ -429,7 +425,7 @@ manhtml:
.SUFFIXES:
# We need to create dependency files. Tricky. We sed rule puts dir/file.d and
# We need to create dependency files. Tricky. The sed rule puts dir/file.d and
# dir/file.c in front of the dependency file rule.
# .o files are used for modules

View File

@@ -24,10 +24,6 @@ There are several interesting targets defined through this Makefile:
any other target).
* clean-i2c, clean-src, ...
Remove anything which can be regenerated from the designated directory.
* dep
Do nothing, but generate any missing .d files. The command
'make clean && make dep' canbe useful in this case ('make clean dep'
will not work, due to technical reasons!).
* version
Regenerate version.h, using the current date for the date-stamp, and
a user-supplied version number.

View File

@@ -176,6 +176,9 @@ endif
ifneq ($(shell if grep -q '^CONFIG_SENSORS_W83627HF=y' $(LINUX)/.config; then echo 1; fi),1)
KERNELCHIPSTARGETS += $(MODULE_DIR)/w83627hf.o
endif
ifneq ($(shell if grep -q '^CONFIG_SENSORS_W83627EHF=y' $(LINUX)/.config; then echo 1; fi),1)
KERNELCHIPSTARGETS += $(MODULE_DIR)/w83627ehf.o
endif
ifneq ($(shell if grep -q '^CONFIG_SENSORS_W83L785TS=y' $(LINUX)/.config; then echo 1; fi),1)
KERNELCHIPSTARGETS += $(MODULE_DIR)/w83l785ts.o
endif