From 02ef96053ccbe4c20827ec8006455906e7fb2360 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 17 Aug 2004 10:36:46 +0000 Subject: 2.6.8.1 has changed the links in /lib/modules --- linux-core/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'linux-core/Makefile') diff --git a/linux-core/Makefile b/linux-core/Makefile index 066766a7..1bb131d8 100644 --- a/linux-core/Makefile +++ b/linux-core/Makefile @@ -38,7 +38,9 @@ SHELL=/bin/sh ifndef LINUXDIR RUNNING_REL := $(shell uname -r) -LINUXDIR := /lib/modules/$(RUNNING_REL)/build +LINUXDIR := $(shell if [ -e /lib/modules/$(RUNNING_REL)/source ]; then \ + echo /lib/modules/$(RUNNING_REL)/source; \ + else echo /lib/modules/$(RUNNING_REL)/build; fi) endif ifndef O -- cgit v1.2.3