don't force the sounds to download... only when needed

fix a few buglets i caused in menuselect
remove downloaded sounds on 'dist-clean'


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@32901 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming 2006-06-07 21:05:05 +00:00
parent 0dd82bc6f1
commit 34cf2c13b8
4 changed files with 11 additions and 9 deletions

View File

@ -380,7 +380,7 @@ _all: all
@echo " + make install +"
@echo " +-------------------------------------------+"
all: cleantest config.status menuselect.makeopts depend asterisk subdirs sounds
all: cleantest config.status menuselect.makeopts depend asterisk subdirs
config.status: configure
@CFLAGS="" ./configure
@ -519,12 +519,13 @@ clean: clean-depend
distclean: dist-clean
dist-clean: clean
$(MAKE) -C mxml clean
$(MAKE) -C build_tools dist-clean
$(MAKE) -C sounds dist-clean
rm -f menuselect.makeopts makeopts makeopts.xml
rm -f config.log config.status
rm -f include/autoconfig.h
rm -f include/asterisk/buildopts.h
$(MAKE) -C mxml clean
$(MAKE) -C build_tools dist-clean
datafiles: all
if [ x`$(ID) -un` = xroot ]; then sh build_tools/mkpkgconfig $(DESTDIR)/usr/lib/pkgconfig; fi
@ -540,6 +541,7 @@ datafiles: all
$(INSTALL) -m 644 $$x $(DESTDIR)$(ASTDATADIR)/images ; \
done
mkdir -p $(DESTDIR)$(AGI_DIR)
$(MAKE) -C sounds install
update:
@if [ -d .svn ]; then \
@ -871,6 +873,7 @@ _uninstall:
rm -rf $(DESTDIR)$(ASTDATADIR)/firmware
rm -rf $(DESTDIR)$(ASTMANDIR)/man8
for x in $(SUBDIRS); do $(MAKE) -C $$x uninstall || exit 1 ; done
$(MAKE) -C sounds uninstall
uninstall: _uninstall
@echo " +--------- Asterisk Uninstall Complete -----+"

View File

@ -24,7 +24,7 @@
* \brief A menu-driven system for Asterisk module selection
*/
#include "autoconfig.h"
#include "asterisk.h"
#include <stdlib.h>
#include <stdio.h>
@ -34,8 +34,6 @@
#include "mxml/mxml.h"
#include "menuselect.h"
#include "asterisk.h"
#include "asterisk/linkedlists.h"
#undef MENUSELECT_DEBUG

View File

@ -24,7 +24,7 @@
* \brief curses frontend for Asterisk module selection
*/
#include "autoconfig.h"
#include "asterisk/autoconfig.h"
#include <stdlib.h>
#include <stdio.h>

View File

@ -37,12 +37,13 @@ MENUSELECT_MOH:=$(subst -FREEPLAY-,-freeplay-,$(MENUSELECT_MOH))
MENUSELECT_MOH:=$(subst -MP3,-mp3,$(MENUSELECT_MOH))
MOH:=$(MENUSELECT_MOH:MOH-%=asterisk-moh-%.tar.gz)
%.gz:
%.tar.gz:
@wget --no-verbose --continue $(SOUNDS_URL)/$@
all: $(CORE_SOUNDS) $(EXTRA_SOUNDS) $(MOH)
clean:
dist-clean:
rm -f *.tar.gz
install: all
mkdir -p $(DESTDIR)$(ASTDATADIR)/sounds