diff options
Diffstat (limited to 'Makefile')
-rwxr-xr-x | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -33,6 +33,9 @@ CFLAGS+=-DSTANDALONE_ZAPATA INSTALL_PREFIX= +CONFIG_FILE=$(INSTALL_PREFIX)/etc/zaptel.conf +CFLAGS+=-DZAPTEL_CONFIG=\"$(CONFIG_FILE)\" + BUILDVER=$(shell if uname -r | grep -q ^2.6; then echo "linux26"; else echo "linux24"; fi) MODCONF=$(shell if [ -d $(INSTALL_PREFIX)/etc/modprobe.d ]; then echo "$(INSTALL_PREFIX)/etc/modprobe.d/zaptel"; elif [ -d $(INSTALL_PREFIX)/etc/modutils ]; then echo "$(INSTALL_PREFIX)/etc/modutils/zaptel"; elif [ -f $(INSTALL_PREFIX)/etc/modprobe.conf ]; then echo "$(INSTALL_PREFIX)/etc/modprobe.conf"; elif [ -f $(INSTALL_PREFIX)/etc/modules.conf ]; then echo "$(INSTALL_PREFIX)/etc/modules.conf"; else echo $(INSTALL_PREFIX)/etc/conf.modules ; fi) @@ -310,7 +313,7 @@ install: all devices $(LIBTONEZONE) /sbin/update-modules ; \ fi -/sbin/depmod -a - [ -f $(INSTALL_PREFIX)/etc/zaptel.conf ] || install -m 644 zaptel.conf.sample $(INSTALL_PREFIX)/etc/zaptel.conf + [ -f $(CONFIG_FILE) ] || install -m 644 zaptel.conf.sample $(CONFIG_FILE) config: if [ -d $(INSTALL_PREFIX)/etc/rc.d/init.d ]; then \ |