mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-27 20:48:22 +00:00
add dependency on the kernel .config file; quit without it
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2049 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
bdebe88c28
commit
9e6d84d135
2 files changed
+10
-2
No files matched your search
@@ -303,6 +303,12 @@ help:
|
||||
@echo ' package: create a distribution package'
|
||||
@echo 'Note: make dep is automatic'
|
||||
|
||||
$(LINUX)/.config:
|
||||
@echo "Error - missing file $(LINUX)/.config !! "
|
||||
@echo " Verify kernel source is in $(LINUX) and then"
|
||||
@echo " cd to $(LINUX) and run 'make config' !!"
|
||||
@exit 1
|
||||
|
||||
# Here, we define all implicit rules we want to use.
|
||||
|
||||
.SUFFIXES:
|
||||
@@ -311,7 +317,8 @@ help:
|
||||
# dir/file.c in front of the dependency file rule.
|
||||
|
||||
# .o files are used for modules
|
||||
%.o: %.c
|
||||
# depend on the kernel config file!
|
||||
%.o: %.c $(LINUX)/.config
|
||||
$(CC) $(MODCPPFLAGS) $(MODCFLAGS) -c $< -o $@
|
||||
|
||||
%.d: %.c
|
||||
|
||||
Reference in new issue
Block a user