From e93f8109174a2f764258212268371c66f88076de Mon Sep 17 00:00:00 2001 From: "Mark M. Hoffman" Date: Tue, 11 Nov 2003 07:11:02 +0000 Subject: [PATCH] make it quit earlier if missing $(LINUX)/.config; also add note for users of stock RedHat kernels git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2051 7894878c-1315-0410-8ee3-d5d059ff63e0 --- Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 34133996..90171d38 100644 --- a/Makefile +++ b/Makefile @@ -304,9 +304,18 @@ help: @echo 'Note: make dep is automatic' $(LINUX)/.config: + @echo @echo "Error - missing file $(LINUX)/.config !! " @echo " Verify kernel source is in $(LINUX) and then" @echo " cd to $(LINUX) and run 'make config' !!" + @echo + @echo "Exception: if you're using a stock RedHat kernel..." + @echo " (1) Install the appropriate kernel-source RPM." + @echo " (2) Copy the appropriate config..." + @echo " from $(LINUX)/configs/<...>" + @echo " to $(LINUX)/.config" + @echo " (3) Do *NOT* 'make dep' or 'make config'." + @echo @exit 1 # Here, we define all implicit rules we want to use. @@ -321,7 +330,7 @@ $(LINUX)/.config: %.o: %.c $(LINUX)/.config $(CC) $(MODCPPFLAGS) $(MODCFLAGS) -c $< -o $@ -%.d: %.c +%.d: %.c $(LINUX)/.config $(CC) -M -MG $(MODCPPFLAGS) $(MODCFLAGS) $< | \ $(SED) -e 's@^\(.*\)\.o:@$*.d $*.o: Makefile '`dirname $*.d`/Module.mk' @' > $@