forked from retronetworking/yate
Added missing Makefile template.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2137 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
4476196f9c
commit
088cac0a68
|
@ -0,0 +1,37 @@
|
|||
# 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
|
Loading…
Reference in New Issue