diff options
author | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2005-09-12 19:56:41 +0000 |
---|---|---|
committer | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2005-09-12 19:56:41 +0000 |
commit | 6d50555e8dab820644e2a2206efd0c19f571955f (patch) | |
tree | 56aab59943ec5c38029febf32f924cfc7a58571f | |
parent | 2c53f96b80258121d3402a3935945e50347299de (diff) |
correctly test KSRC for sanity
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@760 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rwxr-xr-x | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |