2004-11-29 03:56:41 +00:00
|
|
|
# Makefile
|
2007-11-15 23:06:36 +00:00
|
|
|
# This file holds the make rules for Yate script files
|
2004-11-29 03:56:41 +00:00
|
|
|
|
|
|
|
# override DESTDIR at install time to prefix the install directory
|
|
|
|
DESTDIR :=
|
|
|
|
|
2006-07-07 00:06:02 +00:00
|
|
|
SCRIPTS := leavemail.php voicemail.php route.php
|
2008-03-17 19:07:09 +00:00
|
|
|
SCRLIBS := libyate.php libyateivr libyatechan.php libvoicemail.php \
|
|
|
|
libyate.py \
|
|
|
|
Yate.pm
|
2004-11-29 03:56:41 +00:00
|
|
|
|
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
2007-11-15 23:06:36 +00:00
|
|
|
datarootdir = @datarootdir@
|
|
|
|
datadir = @datadir@
|
|
|
|
shrdir = $(datadir)/yate
|
|
|
|
scrdir = $(shrdir)/scripts
|
2004-11-29 03:56:41 +00:00
|
|
|
|
2005-12-19 17:57:16 +00:00
|
|
|
# include optional local make rules
|
|
|
|
-include YateLocal.mak
|
|
|
|
|
2004-11-29 03:56:41 +00:00
|
|
|
.PHONY: all
|
|
|
|
all:
|
|
|
|
|
|
|
|
.PHONY: install
|
|
|
|
install:
|
2007-08-23 11:12:50 +00:00
|
|
|
@cd @srcdir@ && mkdir -p "$(DESTDIR)$(scrdir)/" && \
|
2005-11-07 03:09:23 +00:00
|
|
|
install -m 0644 $(SCRLIBS) "$(DESTDIR)$(scrdir)/" && \
|
2004-11-29 03:56:41 +00:00
|
|
|
test -z "$(SCRIPTS)" || \
|
2005-11-07 03:09:23 +00:00
|
|
|
install $(SCRIPTS) "$(DESTDIR)$(scrdir)/"
|
2004-11-29 03:56:41 +00:00
|
|
|
|
|
|
|
.PHONY: uninstall
|
|
|
|
uninstall:
|
|
|
|
@-for i in $(SCRIPTS) $(SCRLIBS) ; do \
|
2005-11-07 03:09:23 +00:00
|
|
|
rm "$(DESTDIR)$(scrdir)/$$i" ; \
|
|
|
|
done;
|
|
|
|
@-rmdir "$(DESTDIR)$(scrdir)"
|
2007-11-15 23:06:36 +00:00
|
|
|
@-rmdir "$(DESTDIR)$(shrdir)"
|
2004-11-29 03:56:41 +00:00
|
|
|
|
2007-11-23 14:14:54 +00:00
|
|
|
Makefile: @srcdir@/Makefile.in ../../config.status
|
|
|
|
cd ../.. && ./config.status
|