Carsten Koch wrote: > Lauri Tischler wrote: > ... > >>> Ugly, very ugly - requires an extra file... >> >> >> >> Yeah, I'm too dumb :( >> Any Makefile gurus around ? > > > LINUX_VERSION:=$(shell uname -r | cut -c-3) > > DVBDIR:=lib/modules/`uname -r`/build > ifeq ($(LINUX_VERSION), 2.4) > DVBDIR=../DVB > endif > > ifeq ($(LINUX_VERSION), 2.2) > DVBDIR=../DVB > endif Not quite.. LINUX_VERSION:=$(shell uname -r | cut -c-3) LINUX:=$(shell uname -r) DVBDIR:=/lib/modules/$(LINUX)/build ifeq ($(LINUX_VERSION), 2.4) DVBDIR=../DVB endif ifeq ($(LINUX_VERSION), 2.2) DVBDIR=../DVB endif