Merged revisions 279658 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8 ................ r279658 | qwell | 2010-07-26 18:03:38 -0500 (Mon, 26 Jul 2010) | 12 lines Merged revisions 279657 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.6.2 ........ r279657 | qwell | 2010-07-26 17:59:52 -0500 (Mon, 26 Jul 2010) | 5 lines Really fix sounds Makefile (and make it readableish). There was a rather large syntax error that should have caused ALL versions of GNU make to fail. I don't know how it worked. ........ ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@279659 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
05a0a0538a
commit
189839c307
|
@ -176,12 +176,6 @@ AC_PROG_LN_S
|
|||
AC_PROG_RANLIB
|
||||
AST_CHECK_GNU_MAKE
|
||||
|
||||
if test ${ac_cv_GNU_MAKE_VERSION_MAJOR} -gt 2 -a ${ac_cv_GNU_MAKE_VERSION_MINOR} -gt 80; then
|
||||
$LN_S -f Makefile.381 sounds/Makefile
|
||||
else
|
||||
$LN_S -f Makefile.380 sounds/Makefile
|
||||
fi
|
||||
|
||||
AC_CHECK_TOOLS([STRIP], [strip gstrip], :)
|
||||
AC_CHECK_TOOLS([AR], [ar gar], :)
|
||||
AC_CHECK_TOOLS([SHA1SUM], [sha1sum], $ac_aux_dir/build_tools/sha1sum-sh)
|
||||
|
|
|
@ -803,7 +803,7 @@
|
|||
/* Define to 1 if you have the `strtoq' function. */
|
||||
#undef HAVE_STRTOQ
|
||||
|
||||
/* Define to 1 if `st_blksize' is member of `struct stat'. */
|
||||
/* Define to 1 if `st_blksize' is a member of `struct stat'. */
|
||||
#undef HAVE_STRUCT_STAT_ST_BLKSIZE
|
||||
|
||||
/* Define to 1 if you have the mISDN Supplemental Services library. */
|
||||
|
@ -1074,12 +1074,12 @@
|
|||
/* Define to the one symbol short name of this package. */
|
||||
#undef PACKAGE_TARNAME
|
||||
|
||||
/* Define to the home page for this package. */
|
||||
#undef PACKAGE_URL
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#undef PACKAGE_VERSION
|
||||
|
||||
/* Define to 1 if the C compiler supports function prototypes. */
|
||||
#undef PROTOTYPES
|
||||
|
||||
/* Define to necessary symbol if this constant uses a non-standard name on
|
||||
your system. */
|
||||
#undef PTHREAD_CREATE_JOINABLE
|
||||
|
@ -1099,11 +1099,6 @@
|
|||
/* Define to the type of arg 5 for `select'. */
|
||||
#undef SELECT_TYPE_ARG5
|
||||
|
||||
/* Define to 1 if the `setvbuf' function takes the buffering type as its
|
||||
second argument and the buffer pointer as the third, as on System V before
|
||||
release 3. */
|
||||
#undef SETVBUF_REVERSED
|
||||
|
||||
/* The size of `char *', as computed by sizeof. */
|
||||
#undef SIZEOF_CHAR_P
|
||||
|
||||
|
@ -1133,20 +1128,30 @@
|
|||
/* Define to 1 if your <sys/time.h> declares `struct tm'. */
|
||||
#undef TM_IN_SYS_TIME
|
||||
|
||||
/* Define to 1 if on AIX 3.
|
||||
System headers sometimes define this.
|
||||
We just want to avoid a redefinition error message. */
|
||||
/* Enable extensions on AIX 3, Interix. */
|
||||
#ifndef _ALL_SOURCE
|
||||
# undef _ALL_SOURCE
|
||||
#endif
|
||||
|
||||
/* Number of bits in a file offset, on hosts where this is settable. */
|
||||
#undef _FILE_OFFSET_BITS
|
||||
|
||||
/* Enable GNU extensions on systems that have them. */
|
||||
#ifndef _GNU_SOURCE
|
||||
# undef _GNU_SOURCE
|
||||
#endif
|
||||
/* Enable threading extensions on Solaris. */
|
||||
#ifndef _POSIX_PTHREAD_SEMANTICS
|
||||
# undef _POSIX_PTHREAD_SEMANTICS
|
||||
#endif
|
||||
/* Enable extensions on HP NonStop. */
|
||||
#ifndef _TANDEM_SOURCE
|
||||
# undef _TANDEM_SOURCE
|
||||
#endif
|
||||
/* Enable general extensions on Solaris. */
|
||||
#ifndef __EXTENSIONS__
|
||||
# undef __EXTENSIONS__
|
||||
#endif
|
||||
|
||||
|
||||
/* Number of bits in a file offset, on hosts where this is settable. */
|
||||
#undef _FILE_OFFSET_BITS
|
||||
|
||||
/* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
|
||||
#undef _LARGEFILE_SOURCE
|
||||
|
@ -1164,20 +1169,6 @@
|
|||
/* Define to 1 if you need to in order for `stat' and other things to work. */
|
||||
#undef _POSIX_SOURCE
|
||||
|
||||
/* Enable extensions on Solaris. */
|
||||
#ifndef __EXTENSIONS__
|
||||
# undef __EXTENSIONS__
|
||||
#endif
|
||||
#ifndef _POSIX_PTHREAD_SEMANTICS
|
||||
# undef _POSIX_PTHREAD_SEMANTICS
|
||||
#endif
|
||||
#ifndef _TANDEM_SOURCE
|
||||
# undef _TANDEM_SOURCE
|
||||
#endif
|
||||
|
||||
/* Define like PROTOTYPES; this can be used by system headers. */
|
||||
#undef __PROTOTYPES
|
||||
|
||||
/* Define to empty if `const' does not conform to ANSI C. */
|
||||
#undef const
|
||||
|
||||
|
|
|
@ -68,39 +68,42 @@ ifneq ($(findstring wget,$(DOWNLOAD)),)
|
|||
DOWNLOAD+=--continue $(WGET_EXTRA_ARGS)
|
||||
endif
|
||||
|
||||
EMPTY:=
|
||||
BS:=$(EMPTY)\$(EMPTY)
|
||||
|
||||
ifneq ($(SOUNDS_CACHE_DIR),)
|
||||
|
||||
define sound_format_lang_rule
|
||||
$$($(1))/.asterisk-$(2)$(if $(3),-$(3),)-%: have_download
|
||||
$(CMD_PREFIX)PACKAGE=$$(subst $$($(1))/.asterisk,asterisk,$$@).tar.gz; $(BS)
|
||||
if test ! -f $$$${PACKAGE}; then $(BS)
|
||||
if test ! -f $$(SOUNDS_CACHE_DIR)/$$$${PACKAGE}; then $(BS)
|
||||
(cd $$(SOUNDS_CACHE_DIR); ($$(DOWNLOAD) $$(SOUNDS_URL)/$$$${PACKAGE} && $(BS)
|
||||
$$(DOWNLOAD) $$(SOUNDS_URL)/$$$${PACKAGE}.sha1 $(BS)
|
||||
&& $$(SHA1SUM) -c --status $$$${PACKAGE}.sha1) || $(BS)
|
||||
(echo "Bad checksum: $$$${PACKAGE}" 1>&2; exit 1)); $(BS)
|
||||
fi; $(BS)
|
||||
$(LN) -sf $$(SOUNDS_CACHE_DIR)/$$$${PACKAGE} .; $(BS)
|
||||
fi; $(BS)
|
||||
$(if $($(4)_VERSION),\
|
||||
$(EMPTY) rm -f $$(subst -$$($(4)_VERSION),,$$@)-* && $(BS)
|
||||
,) (cd $$($(1))$(if $(3),/$(3),); cat $$(CURDIR)/$$$${PACKAGE} | gzip -d | tar xof -) && $(BS)
|
||||
touch $$@
|
||||
$(CMD_PREFIX)PACKAGE=$$(subst $$($(1))/.asterisk,asterisk,$$@).tar.gz; \
|
||||
if test ! -f $$$${PACKAGE}; then \
|
||||
if test ! -f $$(SOUNDS_CACHE_DIR)/$$$${PACKAGE}; then \
|
||||
(cd $$(SOUNDS_CACHE_DIR); \
|
||||
( \
|
||||
$$(DOWNLOAD) $$(SOUNDS_URL)/$$$${PACKAGE} && \
|
||||
$$(DOWNLOAD) $$(SOUNDS_URL)/$$$${PACKAGE}.sha1 && \
|
||||
$$(SHA1SUM) -c --status $$$${PACKAGE}.sha1 \
|
||||
) || \
|
||||
(echo "Bad checksum: $$$${PACKAGE}" 1>&2; exit 1) \
|
||||
); \
|
||||
fi; \
|
||||
$(LN) -sf $$(SOUNDS_CACHE_DIR)/$$$${PACKAGE} .; \
|
||||
fi; \
|
||||
$(if $($(4)_VERSION),rm -f $$(subst -$$($(4)_VERSION),,$$@)-*,); \
|
||||
(cd $$($(1))$(if $(3),/$(3),); cat $$(CURDIR)/$$$${PACKAGE} | gzip -d | tar xof -) && touch $$@
|
||||
endef
|
||||
|
||||
define sound_download_rule
|
||||
asterisk-$(1)-%.tar.gz: have_download
|
||||
$(CMD_PREFIX)if test ! -f $$@ && test ! -f $$(SOUNDS_DIR)/.$$(subst .tar.gz,,$/$@); then $(BS)
|
||||
if test ! -f $$(SOUNDS_CACHE_DIR)/$$@; then $(BS)
|
||||
(cd $$(SOUNDS_CACHE_DIR); ($$(DOWNLOAD) $$(SOUNDS_URL)/$$@ && $(BS)
|
||||
$$(DOWNLOAD) $$(SOUNDS_URL)/$$@.sha1 $(BS)
|
||||
&& $$(SHA1SUM) -c --status $$@.sha1) || $(BS)
|
||||
(echo "Bad checksum: $$@" 1>&2; exit 1)); $(BS)
|
||||
fi; $(BS)
|
||||
$(LN) -sf $$(SOUNDS_CACHE_DIR)/$$@ .; $(BS)
|
||||
$(CMD_PREFIX)if test ! -f $$@ && test ! -f $$(SOUNDS_DIR)/.$$(subst .tar.gz,,$/$@); then \
|
||||
if test ! -f $$(SOUNDS_CACHE_DIR)/$$@; then \
|
||||
(cd $$(SOUNDS_CACHE_DIR); \
|
||||
( \
|
||||
$$(DOWNLOAD) $$(SOUNDS_URL)/$$@ && \
|
||||
$$(DOWNLOAD) $$(SOUNDS_URL)/$$@.sha1 && \
|
||||
$$(SHA1SUM) -c --status $$@.sha1 \
|
||||
) || \
|
||||
(echo "Bad checksum: $$@" 1>&2; exit 1) \
|
||||
); \
|
||||
fi; \
|
||||
$(LN) -sf $$(SOUNDS_CACHE_DIR)/$$@ .; \
|
||||
fi
|
||||
endef
|
||||
|
||||
|
@ -108,20 +111,18 @@ else
|
|||
|
||||
define sound_format_lang_rule
|
||||
$$($(1))/.asterisk-$(2)$(if $(3),-$(3),)-%: have_download
|
||||
$(CMD_PREFIX)PACKAGE=$$(subst $$($(1))/.asterisk,asterisk,$$@).tar.gz; $(BS)
|
||||
if test ! -f $$$${PACKAGE}; then $(BS)
|
||||
($$(DOWNLOAD) $$(SOUNDS_URL)/$$$${PACKAGE} || exit 1); $(BS)
|
||||
fi; $(BS)
|
||||
$(if $($(4)_VERSION),\
|
||||
$(EMPTY) rm -f $$(subst -$$($(4)_VERSION),,$$@)-* && $(BS)
|
||||
,) (cd $$($(1))$(if $(3),/$(3),); cat $$(CURDIR)/$$$${PACKAGE} | gzip -d | tar xof -) && $(BS)
|
||||
touch $$@
|
||||
$(CMD_PREFIX)PACKAGE=$$(subst $$($(1))/.asterisk,asterisk,$$@).tar.gz; \
|
||||
if test ! -f $$$${PACKAGE}; then \
|
||||
($$(DOWNLOAD) $$(SOUNDS_URL)/$$$${PACKAGE} || exit 1); \
|
||||
fi; \
|
||||
$(if $($(4)_VERSION),rm -f $$(subst -$$($(4)_VERSION),,$$@)-*,); \
|
||||
(cd $$($(1))$(if $(3),/$(3),); cat $$(CURDIR)/$$$${PACKAGE} | gzip -d | tar xof -) && touch $$@
|
||||
endef
|
||||
|
||||
define sound_download_rule
|
||||
asterisk-$(1)-%.tar.gz: have_download
|
||||
$(CMD_PREFIX)if test ! -f $$@ && test ! -f $$(SOUNDS_DIR)/.$$(subst .tar.gz,,$$@); then $(BS)
|
||||
$$(DOWNLOAD) $$(SOUNDS_URL)/$$@; $(BS)
|
||||
$(CMD_PREFIX)if test ! -f $$@ && test ! -f $$(SOUNDS_DIR)/.$$(subst .tar.gz,,$$@); then \
|
||||
$$(DOWNLOAD) $$(SOUNDS_URL)/$$@; \
|
||||
fi
|
||||
endef
|
||||
|
|
@ -1,166 +0,0 @@
|
|||
#
|
||||
# Asterisk -- A telephony toolkit for Linux.
|
||||
#
|
||||
# Makefile for sound files
|
||||
#
|
||||
# Copyright (C) 2006, Digium, Inc.
|
||||
#
|
||||
# Kevin P. Fleming <kpfleming@digium.com>
|
||||
#
|
||||
# This program is free software, distributed under the terms of
|
||||
# the GNU General Public License
|
||||
#
|
||||
|
||||
.PHONY: dist-clean all uninstall have_download install
|
||||
|
||||
-include $(ASTTOPDIR)/menuselect.makeopts $(ASTTOPDIR)/makeopts
|
||||
|
||||
SOUNDS_DIR:=$(DESTDIR)$(ASTDATADIR)/sounds
|
||||
MOH_DIR:=$(DESTDIR)$(ASTDATADIR)/moh
|
||||
CORE_SOUNDS_VERSION:=1.4.19
|
||||
EXTRA_SOUNDS_VERSION:=1.4.11
|
||||
SOUNDS_URL:=http://downloads.asterisk.org/pub/telephony/sounds/releases
|
||||
MCS:=$(subst -EN-,-en-,$(MENUSELECT_CORE_SOUNDS))
|
||||
MCS:=$(subst -FR-,-fr-,$(MCS))
|
||||
MCS:=$(subst -ES-,-es-,$(MCS))
|
||||
MCS:=$(subst -WAV,-wav,$(MCS))
|
||||
MCS:=$(subst -ULAW,-ulaw,$(MCS))
|
||||
MCS:=$(subst -ALAW,-alaw,$(MCS))
|
||||
MCS:=$(subst -GSM,-gsm,$(MCS))
|
||||
MCS:=$(subst -G729,-g729,$(MCS))
|
||||
MCS:=$(subst -G722,-g722,$(MCS))
|
||||
MCS:=$(subst -SLN16,-sln16,$(MCS))
|
||||
MCS:=$(subst -SIREN7,-siren7,$(MCS))
|
||||
MCS:=$(subst -SIREN14,-siren14,$(MCS))
|
||||
CORE_SOUNDS:=$(MCS:CORE-SOUNDS-%=asterisk-core-sounds-%-$(CORE_SOUNDS_VERSION).tar.gz)
|
||||
CORE_SOUND_TAGS:=$(MCS:CORE-SOUNDS-%=$(SOUNDS_DIR)/.asterisk-core-sounds-%-$(CORE_SOUNDS_VERSION))
|
||||
MES:=$(subst -EN-,-en-,$(MENUSELECT_EXTRA_SOUNDS))
|
||||
MES:=$(subst -FR-,-fr-,$(MES))
|
||||
MES:=$(subst -ES-,-es-,$(MES))
|
||||
MES:=$(subst -WAV,-wav,$(MES))
|
||||
MES:=$(subst -ULAW,-ulaw,$(MES))
|
||||
MES:=$(subst -ALAW,-alaw,$(MES))
|
||||
MES:=$(subst -GSM,-gsm,$(MES))
|
||||
MES:=$(subst -G729,-g729,$(MES))
|
||||
MES:=$(subst -G722,-g722,$(MES))
|
||||
MES:=$(subst -SLN16,-sln16,$(MES))
|
||||
MES:=$(subst -SIREN7,-siren7,$(MES))
|
||||
MES:=$(subst -SIREN14,-siren14,$(MES))
|
||||
EXTRA_SOUNDS:=$(MES:EXTRA-SOUNDS-%=asterisk-extra-sounds-%-$(EXTRA_SOUNDS_VERSION).tar.gz)
|
||||
EXTRA_SOUND_TAGS:=$(MES:EXTRA-SOUNDS-%=$(SOUNDS_DIR)/.asterisk-extra-sounds-%-$(EXTRA_SOUNDS_VERSION))
|
||||
MM:=$(subst -OPSOUND-,-opsound-,$(MENUSELECT_MOH))
|
||||
MM:=$(subst -WAV,-wav,$(MM))
|
||||
MM:=$(subst -ULAW,-ulaw,$(MM))
|
||||
MM:=$(subst -ALAW,-alaw,$(MM))
|
||||
MM:=$(subst -GSM,-gsm,$(MM))
|
||||
MM:=$(subst -G729,-g729,$(MM))
|
||||
MM:=$(subst -G722,-g722,$(MM))
|
||||
MM:=$(subst -SLN16,-sln16,$(MM))
|
||||
MM:=$(subst -SIREN7,-siren7,$(MM))
|
||||
MM:=$(subst -SIREN14,-siren14,$(MM))
|
||||
MOH:=$(MM:MOH-%=asterisk-moh-%.tar.gz)
|
||||
MOH_TAGS:=$(MM:MOH-%=$(MOH_DIR)/.asterisk-moh-%)
|
||||
# If "fetch" is used, --continue is not a valid option.
|
||||
ifneq ($(findstring wget,$(WGET)),)
|
||||
WGET_ARGS:=--continue $(WGET_EXTRA_ARGS)
|
||||
endif
|
||||
|
||||
all: $(CORE_SOUNDS) $(EXTRA_SOUNDS) $(MOH)
|
||||
|
||||
have_download:
|
||||
@if test "$(DOWNLOAD)" = ":" ; then \
|
||||
echo "**************************************************"; \
|
||||
echo "*** ***"; \
|
||||
echo "*** You must have either wget or fetch to be ***"; \
|
||||
echo "*** able to automatically download and install ***"; \
|
||||
echo "*** the requested sound packages. ***"; \
|
||||
echo "*** ***"; \
|
||||
echo "*** Please install one of these, or remove any ***"; \
|
||||
echo "*** extra sound package selections in ***"; \
|
||||
echo "*** menuselecct before installing Asterisk. ***"; \
|
||||
echo "*** ***"; \
|
||||
echo "**************************************************"; \
|
||||
exit 1; \
|
||||
fi
|
||||
|
||||
$(SOUNDS_DIR)/.asterisk-core-sounds-en-%: have_download
|
||||
@PACKAGE=$(subst $(SOUNDS_DIR)/.asterisk,asterisk,$@).tar.gz; \
|
||||
if test ! -f $${PACKAGE}; then $(DOWNLOAD) $(WGET_ARGS) $(SOUNDS_URL)/$${PACKAGE}; fi; \
|
||||
if test ! -f $${PACKAGE}; then exit 1; fi; \
|
||||
rm -f $(subst -$(CORE_SOUNDS_VERSION),,$@)-* && \
|
||||
(cd $(SOUNDS_DIR)/en; cat $(CURDIR)/$${PACKAGE} | gzip -d | tar xof -) && \
|
||||
touch $@
|
||||
|
||||
$(SOUNDS_DIR)/.asterisk-core-sounds-es-%: have_download
|
||||
@PACKAGE=$(subst $(SOUNDS_DIR)/.asterisk,asterisk,$@).tar.gz; \
|
||||
if test ! -f $${PACKAGE}; then $(DOWNLOAD) $(WGET_ARGS) $(SOUNDS_URL)/$${PACKAGE}; fi; \
|
||||
if test ! -f $${PACKAGE}; then exit 1; fi; \
|
||||
rm -f $(subst -$(CORE_SOUNDS_VERSION),,$@)-* && \
|
||||
(cd $(SOUNDS_DIR)/es; cat $(CURDIR)/$${PACKAGE} | gzip -d | tar xof -) && \
|
||||
touch $@
|
||||
|
||||
$(SOUNDS_DIR)/.asterisk-core-sounds-fr-%: have_download
|
||||
@PACKAGE=$(subst $(SOUNDS_DIR)/.asterisk,asterisk,$@).tar.gz; \
|
||||
if test ! -f $${PACKAGE}; then $(DOWNLOAD) $(WGET_ARGS) $(SOUNDS_URL)/$${PACKAGE}; fi; \
|
||||
if test ! -f $${PACKAGE}; then exit 1; fi; \
|
||||
rm -f $(subst -$(CORE_SOUNDS_VERSION),,$@)-* && \
|
||||
(cd $(SOUNDS_DIR)/fr; cat $(CURDIR)/$${PACKAGE} | gzip -d | tar xof -) && \
|
||||
touch $@
|
||||
|
||||
$(SOUNDS_DIR)/.asterisk-extra-sounds-en-%: have_download
|
||||
@PACKAGE=$(subst $(SOUNDS_DIR)/.asterisk,asterisk,$@).tar.gz; \
|
||||
if test ! -f $${PACKAGE}; then $(DOWNLOAD) $(WGET_ARGS) $(SOUNDS_URL)/$${PACKAGE}; fi; \
|
||||
if test ! -f $${PACKAGE}; then exit 1; fi; \
|
||||
rm -f $(subst -$(EXTRA_SOUNDS_VERSION),,$@)-* && \
|
||||
(cd $(SOUNDS_DIR)/en; cat $(CURDIR)/$${PACKAGE} | gzip -d | tar xof -) && \
|
||||
touch $@
|
||||
|
||||
$(SOUNDS_DIR)/.asterisk-extra-sounds-es-%: have_download
|
||||
@PACKAGE=$(subst $(SOUNDS_DIR)/.asterisk,asterisk,$@).tar.gz; \
|
||||
if test ! -f $${PACKAGE}; then $(DOWNLOAD) $(WGET_ARGS) $(SOUNDS_URL)/$${PACKAGE}; fi; \
|
||||
if test ! -f $${PACKAGE}; then exit 1; fi; \
|
||||
rm -f $(subst -$(EXTRA_SOUNDS_VERSION),,$@)-* && \
|
||||
(cd $(SOUNDS_DIR)/es; cat $(CURDIR)/$${PACKAGE} | gzip -d | tar xof -) && \
|
||||
touch $@
|
||||
|
||||
$(SOUNDS_DIR)/.asterisk-extra-sounds-fr-%: have_download
|
||||
@PACKAGE=$(subst $(SOUNDS_DIR)/.asterisk,asterisk,$@).tar.gz; \
|
||||
if test ! -f $${PACKAGE}; then $(DOWNLOAD) $(WGET_ARGS) $(SOUNDS_URL)/$${PACKAGE}; fi; \
|
||||
if test ! -f $${PACKAGE}; then exit 1; fi; \
|
||||
rm -f $(subst -$(EXTRA_SOUNDS_VERSION),,$@)-* && \
|
||||
(cd $(SOUNDS_DIR)/fr; cat $(CURDIR)/$${PACKAGE} | gzip -d | tar xof -) && \
|
||||
touch $@
|
||||
|
||||
$(MOH_DIR)/.asterisk-moh-%: have_download
|
||||
@PACKAGE=$(subst $(MOH_DIR)/.asterisk,asterisk,$@).tar.gz; \
|
||||
if test ! -f $${PACKAGE}; then $(DOWNLOAD) $(WGET_ARGS) $(SOUNDS_URL)/$${PACKAGE}; fi; \
|
||||
if test ! -f $${PACKAGE}; then exit 1; fi; \
|
||||
(cd $(MOH_DIR); cat $(CURDIR)/$${PACKAGE} | gzip -d | tar xof -) && \
|
||||
touch $@
|
||||
|
||||
asterisk-core-%.tar.gz: have_download
|
||||
@if test ! -f $@ && test ! -f $(SOUNDS_DIR)/.$(subst .tar.gz,,$@) ; then $(DOWNLOAD) $(WGET_ARGS) $(SOUNDS_URL)/$@;fi
|
||||
|
||||
asterisk-extra-%.tar.gz: have_download
|
||||
@if test ! -f $@ && test ! -f $(SOUNDS_DIR)/.$(subst .tar.gz,,$@) ; then $(DOWNLOAD) $(WGET_ARGS) $(SOUNDS_URL)/$@;fi
|
||||
|
||||
asterisk-moh-%.tar.gz: have_download
|
||||
@if test ! -f $@ && test ! -f $(MOH_DIR)/.$(subst .tar.gz,,$@) ; then $(DOWNLOAD) $(WGET_ARGS) $(SOUNDS_URL)/$@;fi
|
||||
|
||||
dist-clean:
|
||||
rm -f *.tar.gz
|
||||
|
||||
$(SOUNDS_DIR)/en $(MOH_DIR) $(SOUNDS_DIR)/es $(SOUNDS_DIR)/fr:
|
||||
mkdir -p $@
|
||||
|
||||
install: $(SOUNDS_DIR)/en $(SOUNDS_DIR)/es $(SOUNDS_DIR)/fr $(MOH_DIR) $(CORE_SOUND_TAGS) $(EXTRA_SOUND_TAGS) $(MOH_TAGS)
|
||||
|
||||
uninstall:
|
||||
rm -rf $(SOUNDS_DIR)
|
||||
rm -rf $(MOH_DIR)
|
||||
|
||||
core_sounds_version:
|
||||
@echo $(CORE_SOUNDS_VERSION)
|
||||
|
||||
extra_sounds_version:
|
||||
@echo $(EXTRA_SOUNDS_VERSION)
|
Loading…
Reference in New Issue