Changeset 786

Show
Ignore:
Timestamp:
03/22/00 23:59:17 (9 years ago)
Author:
frodo
Message:

Changed detection of kernel name to use <linux/version.h>

Files:

Legend:

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

    r734 r786  
    8181# The magic invocation will return something like this: 
    8282#   /lib/modules/2.2.15-ac9/extra/misc 
    83 MODDIR := /lib/modules/`sed -ne '1,4 { s/.*= *\(.*\)/\1/; 1,2 s/.*/&./; p; };' <$(LINUX)/Makefile | tr -d '\n'`/misc 
     83MODDIR := /lib/modules/`grep UTS_RELEASE $(LINUX_HEADERS)/linux/version.h|cut -f 2 -d'"'`/extra/misc 
    8484 
    8585# This is the directory where sensors.conf will be installed, if no other 
     
    233233 
    234234# We need to create dependency files. Tricky. We sed rule puts dir/file.d and 
    235 # dir/file.c # in front of the dependency file rule. 
     235# dir/file.c in front of the dependency file rule. 
    236236 
    237237# .o files are used for modules