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

exist.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1654 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2002-11-28 19:00:25 +00:00
1 parent 552f899022
commit be8a79a8bf
1 file changed
+3 -1
+3 -1
View File
@@ -33,7 +33,9 @@ KERNELVERSION := $(shell uname -r)
# The location of linux itself. This is used to find the kernel headers
# and other things.
#LINUX := /usr/src/linux
LINUX := /lib/modules/$(KERNELVERSION)/build
LINUX := $(shell if [ -L /lib/modules/$(KERNELVERSION)/build ] ; \
then echo "/lib/modules/$(KERNELVERSION)/build" ; \
else echo "/usr/src/linux" ; fi)
LINUX_HEADERS := $(LINUX)/include
# Determine whether we need to compile the kernel modules, or only the