088cac0a68
git-svn-id: http://yate.null.ro/svn/yate/trunk@2137 acf43c95-373e-0410-b603-e72c3f656dc1
38 lines
801 B
Makefile
38 lines
801 B
Makefile
# Makefile
|
|
# This file holds the make rules for Yate script files
|
|
|
|
# override DESTDIR at install time to prefix the install directory
|
|
DESTDIR :=
|
|
|
|
SOUNDS := ring.wav tone.wav
|
|
|
|
prefix = @prefix@
|
|
exec_prefix = @exec_prefix@
|
|
datarootdir = @datarootdir@
|
|
datadir = @datadir@
|
|
shrdir = $(datadir)/yate
|
|
snddir = $(shrdir)/sounds
|
|
|
|
# include optional local make rules
|
|
-include YateLocal.mak
|
|
|
|
.PHONY: all
|
|
all:
|
|
|
|
.PHONY: install
|
|
install:
|
|
@cd @srcdir@ && mkdir -p "$(DESTDIR)$(snddir)/" && \
|
|
test -z "$(SOUNDS)" || \
|
|
install -m 0644 $(SOUNDS) "$(DESTDIR)$(snddir)/"
|
|
|
|
.PHONY: uninstall
|
|
uninstall:
|
|
@-for i in $(SOUNDS) ; do \
|
|
rm "$(DESTDIR)$(snddir)/$$i" ; \
|
|
done;
|
|
@-rmdir "$(DESTDIR)$(snddir)"
|
|
@-rmdir "$(DESTDIR)$(shrdir)"
|
|
|
|
Makefile: @srcdir@/Makefile.in ../../config.status
|
|
cd ../.. && ./config.status
|