mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-09-01 06:45:24 +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:
3
CHANGES
3
CHANGES
@@ -11,7 +11,8 @@ lm_sensors CHANGES file
|
|||||||
Fix all memory leaks (yeah!)
|
Fix all memory leaks (yeah!)
|
||||||
Fix no sensors being reported as an error
|
Fix no sensors being reported as an error
|
||||||
Makefile: Don't grep autoconf.h on user-space targets
|
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-ali1535: Drop redundant semaphore (2.6 backport)
|
||||||
Module i2c-amd756-s4882: Improve static semaphore initialization
|
Module i2c-amd756-s4882: Improve static semaphore initialization
|
||||||
(2.6 backport)
|
(2.6 backport)
|
||||||
|
10
Makefile
10
Makefile
@@ -279,7 +279,7 @@ LIBCPPFLAGS := $(LIBCPPFLAGS) -DSYSFS_SUPPORT
|
|||||||
endif
|
endif
|
||||||
LIBCFLAGS := -fpic $(ALL_CFLAGS)
|
LIBCFLAGS := -fpic $(ALL_CFLAGS)
|
||||||
|
|
||||||
.PHONY: all clean install version package dep
|
.PHONY: all clean install version package
|
||||||
|
|
||||||
# Make all the default rule
|
# Make all the default rule
|
||||||
all::
|
all::
|
||||||
@@ -293,7 +293,7 @@ ifneq ($(MAKECMDGOALS),user_uninstall)
|
|||||||
ifneq ($(MAKECMDGOALS),help)
|
ifneq ($(MAKECMDGOALS),help)
|
||||||
ifneq ($(MAKECMDGOALS),package)
|
ifneq ($(MAKECMDGOALS),package)
|
||||||
ifneq ($(MAKECMDGOALS),userpackage)
|
ifneq ($(MAKECMDGOALS),userpackage)
|
||||||
include $(INCLUDEFILES)
|
-include $(INCLUDEFILES)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
@@ -305,9 +305,6 @@ endif
|
|||||||
MANPAGES := $(LIBMAN3FILES) $(LIBMAN5FILES) $(PROGDETECTMAN8FILES) $(PROGDUMPMAN8FILES) \
|
MANPAGES := $(LIBMAN3FILES) $(LIBMAN5FILES) $(PROGDETECTMAN8FILES) $(PROGDUMPMAN8FILES) \
|
||||||
$(PROGSENSORSMAN1FILES) $(PROGPWMMAN8FILES) prog/sensord/sensord.8
|
$(PROGSENSORSMAN1FILES) $(PROGPWMMAN8FILES) prog/sensord/sensord.8
|
||||||
|
|
||||||
# Making the dependency files - done automatically!
|
|
||||||
dep :
|
|
||||||
|
|
||||||
user ::
|
user ::
|
||||||
user_install::
|
user_install::
|
||||||
@echo "*** Important note:"
|
@echo "*** Important note:"
|
||||||
@@ -395,7 +392,6 @@ help:
|
|||||||
@echo ' user_uninstall: remove userspace programs'
|
@echo ' user_uninstall: remove userspace programs'
|
||||||
@echo ' clean: cleanup'
|
@echo ' clean: cleanup'
|
||||||
@echo ' package: create a distribution package'
|
@echo ' package: create a distribution package'
|
||||||
@echo 'Note: make dep is automatic'
|
|
||||||
|
|
||||||
$(LINUX)/.config:
|
$(LINUX)/.config:
|
||||||
@echo
|
@echo
|
||||||
@@ -429,7 +425,7 @@ manhtml:
|
|||||||
|
|
||||||
.SUFFIXES:
|
.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.
|
# dir/file.c in front of the dependency file rule.
|
||||||
|
|
||||||
# .o files are used for modules
|
# .o files are used for modules
|
||||||
|
@@ -24,10 +24,6 @@ There are several interesting targets defined through this Makefile:
|
|||||||
any other target).
|
any other target).
|
||||||
* clean-i2c, clean-src, ...
|
* clean-i2c, clean-src, ...
|
||||||
Remove anything which can be regenerated from the designated directory.
|
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
|
* version
|
||||||
Regenerate version.h, using the current date for the date-stamp, and
|
Regenerate version.h, using the current date for the date-stamp, and
|
||||||
a user-supplied version number.
|
a user-supplied version number.
|
||||||
|
@@ -176,6 +176,9 @@ endif
|
|||||||
ifneq ($(shell if grep -q '^CONFIG_SENSORS_W83627HF=y' $(LINUX)/.config; then echo 1; fi),1)
|
ifneq ($(shell if grep -q '^CONFIG_SENSORS_W83627HF=y' $(LINUX)/.config; then echo 1; fi),1)
|
||||||
KERNELCHIPSTARGETS += $(MODULE_DIR)/w83627hf.o
|
KERNELCHIPSTARGETS += $(MODULE_DIR)/w83627hf.o
|
||||||
endif
|
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)
|
ifneq ($(shell if grep -q '^CONFIG_SENSORS_W83L785TS=y' $(LINUX)/.config; then echo 1; fi),1)
|
||||||
KERNELCHIPSTARGETS += $(MODULE_DIR)/w83l785ts.o
|
KERNELCHIPSTARGETS += $(MODULE_DIR)/w83l785ts.o
|
||||||
endif
|
endif
|
||||||
|
Reference in New Issue
Block a user