summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2005-09-12 19:56:41 +0000
committerkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2005-09-12 19:56:41 +0000
commit6d50555e8dab820644e2a2206efd0c19f571955f (patch)
tree56aab59943ec5c38029febf32f924cfc7a58571f
parent2c53f96b80258121d3402a3935945e50347299de (diff)
correctly test KSRC for sanity
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@760 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rwxr-xr-xMakefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 215f64c..3c04ca2 100755
--- a/Makefile
+++ b/Makefile
@@ -121,7 +121,8 @@ all: $(BUILDVER) $(LIBTONEZONE_SO) manpages
linux24: $(MODULESO) $(BINS)
linux26: prereq $(BINS)
- @if ! [ -d $(KSRC) ]; then echo "You do not appear to have the sources for the $(KVERS) kernel installed."; exit 1 ; fi
+ @echo $(KSRC)
+ @if [ -z "$(KSRC)" -o ! -d $(KSRC) ]; then echo "You do not appear to have the sources for the $(KVERS) kernel installed."; exit 1 ; fi
$(MAKE) -C $(KSRC) SUBDIRS=$(PWD) modules
obj-m := $(MODULESO)