Changeset 2049

Show
Ignore:
Timestamp:
11/09/03 04:00:31 (5 years ago)
Author:
mds
Message:

add dependency on the kernel .config file; quit without it

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lm-sensors/trunk/CHANGES

    r2048 r2049  
    2222           Add w83627thf support; Advance version to 2.0.2; 
    2323           Add hermes, ADM1032, ASB100 support 
    24   Makefiles: Install fancontrol, pwmconfig, decode-*.pl 
     24  Makefiles: Install fancontrol, pwmconfig, decode-*.pl; 
     25             Fail if no kernel .config file exists 
    2526  Module asb100: New 
    2627  Module bmcsensors: Fix voltage scaling, voltage and fan limits 
  • lm-sensors/trunk/Makefile

    r2026 r2049  
    304304        @echo 'Note: make dep is automatic' 
    305305 
     306$(LINUX)/.config: 
     307        @echo "Error - missing file $(LINUX)/.config !! " 
     308        @echo "  Verify kernel source is in $(LINUX) and then" 
     309        @echo "  cd to $(LINUX) and run 'make config' !!" 
     310        @exit 1 
     311 
    306312# Here, we define all implicit rules we want to use. 
    307313 
     
    312318 
    313319# .o files are used for modules 
    314 %.o: %.c 
     320# depend on the kernel config file! 
     321%.o: %.c $(LINUX)/.config 
    315322        $(CC) $(MODCPPFLAGS) $(MODCFLAGS) -c $< -o $@ 
    316323