Show
Ignore:
Timestamp:
11/28/02 20:00:25 (11 years ago)
Author:
khali
Message:

Handle the case where /lib/modules/$KERNELVERSION/build doesn't

exist.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/Makefile

    r1601 r1654  
    3434# and other things. 
    3535#LINUX := /usr/src/linux 
    36 LINUX := /lib/modules/$(KERNELVERSION)/build 
     36LINUX := $(shell if [ -L /lib/modules/$(KERNELVERSION)/build ] ; \ 
     37        then echo "/lib/modules/$(KERNELVERSION)/build" ; \ 
     38        else echo "/usr/src/linux" ; fi) 
    3739LINUX_HEADERS := $(LINUX)/include 
    3840