Lauri Tischler wrote: > Klaus Schmidinger wrote: > >> Ok, and now the whole thing in Makefile syntax, please... ;-) > > > # DVBDIR=/very/odd/place > ifndef DVBDIR > DVBDIR=$(shell ./getdvbdir.sh) > endif > > --- getdvbdir.sh --- > #!/bin/bash > case `uname -r` in > 2.[01234].*) > DVBDIR=../DVB > ;; > *) > DVBDIR=lib/modules/`uname -r`/build > ;; > esac > echo $DVBDIR Ugly, very ugly - requires an extra file... Klaus