From: Kevin P. Fleming Date: Sun, 25 Jun 2006 08:50:14 +0000 (+0000) Subject: use new (separate) dependencies file from menuselect X-Git-Tag: 1.4.0-beta1~772 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a579371f4313ae5c1abe722cbb93b21164133bae;p=thirdparty%2Fasterisk.git use new (separate) dependencies file from menuselect git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@35895 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/Makefile b/Makefile index 7af2cca9bc..59e6063297 100644 --- a/Makefile +++ b/Makefile @@ -121,6 +121,7 @@ USER_MAKEOPTS=$(wildcard ~/.asterisk.makeopts) ifneq ($(wildcard menuselect.makeopts),) include menuselect.makeopts + include menuselect.makedeps endif ifneq ($(wildcard makeopts),) @@ -512,7 +513,7 @@ dist-clean: clean @$(MAKE) -C mxml clean @$(MAKE) -C menuselect dist-clean @$(MAKE) -C sounds dist-clean - rm -f menuselect.makeopts makeopts makeopts.xml + rm -f menuselect.makeopts makeopts makeopts.xml menuselect.makedeps rm -f config.log config.status rm -rf autom4te.cache rm -f include/autoconfig.h @@ -885,6 +886,5 @@ mxml/libmxml.a: makeopts.xml: $(foreach dir,$(MOD_SUBDIRS),$(dir)/*.c) build_tools/cflags.xml sounds/sounds.xml @echo "Generating list of available modules ..." @build_tools/prep_moduledeps > $@ - @sed -i -e /MENUSELECT_DEPENDS/d menuselect.makeopts .PHONY: menuselect sounds clean clean-depend dist-clean distclean all _all depend cleantest uninstall _uninstall uninstall-all dont-optimize valgrind $(SUBDIRS_INSTALL) $(SUBDIRS_CLEAN) $(SUBDIRS_CLEAN_DEPEND) $(SUBDIRS_DEPEND) $(SUBDIRS_UNINSTALL) $(SUBDIRS) diff --git a/apps/Makefile b/apps/Makefile index 01d70c6af3..7c86dfa32f 100644 --- a/apps/Makefile +++ b/apps/Makefile @@ -11,6 +11,7 @@ ifneq ($(wildcard ../menuselect.makeopts),) include ../menuselect.makeopts + include ../menuselect.makedeps endif SELECTED_MODS:=$(filter-out $(MENUSELECT_APPS),$(patsubst %.c,%,$(wildcard app_*.c))) diff --git a/cdr/Makefile b/cdr/Makefile index 5b1f5071b4..1e77912692 100644 --- a/cdr/Makefile +++ b/cdr/Makefile @@ -11,6 +11,7 @@ ifneq ($(wildcard ../menuselect.makeopts),) include ../menuselect.makeopts + include ../menuselect.makedeps endif SELECTED_MODS:=$(filter-out $(MENUSELECT_CDR),$(patsubst %.c,%,$(wildcard cdr_*.c))) diff --git a/channels/Makefile b/channels/Makefile index e65ce12566..5af2f3c021 100644 --- a/channels/Makefile +++ b/channels/Makefile @@ -11,6 +11,7 @@ ifneq ($(wildcard ../menuselect.makeopts),) include ../menuselect.makeopts + include ../menuselect.makedeps endif SELECTED_MODS:=$(filter-out $(MENUSELECT_CHANNELS),$(patsubst %.c,%,$(wildcard chan_*.c))) diff --git a/codecs/Makefile b/codecs/Makefile index df84f3b5ec..61c5510780 100644 --- a/codecs/Makefile +++ b/codecs/Makefile @@ -11,10 +11,9 @@ # the GNU General Public License # -.PHONY: clean clean-depend all depend uninstall - ifneq ($(wildcard ../menuselect.makeopts),) include ../menuselect.makeopts + include ../menuselect.makedeps endif SELECTED_MODS:=$(filter-out $(MENUSELECT_CODECS),$(patsubst %.c,%,$(wildcard codec_*.c))) diff --git a/formats/Makefile b/formats/Makefile index 351f1e8a10..06195d03c0 100644 --- a/formats/Makefile +++ b/formats/Makefile @@ -11,6 +11,7 @@ ifneq ($(wildcard ../menuselect.makeopts),) include ../menuselect.makeopts + include ../menuselect.makedeps endif SELECTED_MODS:=$(filter-out $(MENUSELECT_FORMATS),$(patsubst %.c,%,$(wildcard format_*.c))) diff --git a/funcs/Makefile b/funcs/Makefile index 381a3d72cd..5a8845c184 100644 --- a/funcs/Makefile +++ b/funcs/Makefile @@ -11,6 +11,7 @@ ifneq ($(wildcard ../menuselect.makeopts),) include ../menuselect.makeopts + include ../menuselect.makedeps endif SELECTED_MODS:=$(filter-out $(MENUSELECT_FUNCS),$(patsubst %.c,%,$(wildcard func_*.c))) diff --git a/pbx/Makefile b/pbx/Makefile index 6b9beb970a..7680943cb0 100644 --- a/pbx/Makefile +++ b/pbx/Makefile @@ -11,6 +11,7 @@ ifneq ($(wildcard ../menuselect.makeopts),) include ../menuselect.makeopts + include ../menuselect.makedeps endif SELECTED_MODS:=$(filter-out $(MENUSELECT_PBX),$(patsubst %.c,%,$(wildcard pbx_*.c))) diff --git a/res/Makefile b/res/Makefile index 3fc5a406bc..de6e90ac61 100644 --- a/res/Makefile +++ b/res/Makefile @@ -11,6 +11,7 @@ ifneq ($(wildcard ../menuselect.makeopts),) include ../menuselect.makeopts + include ../menuselect.makedeps endif SELECTED_MODS:=$(filter-out $(MENUSELECT_RES),$(patsubst %.c,%,$(wildcard res_*.c))) diff --git a/sounds/Makefile b/sounds/Makefile index 7a5d60d044..a55b765d41 100644 --- a/sounds/Makefile +++ b/sounds/Makefile @@ -52,6 +52,8 @@ MOH:=$(MENUSELECT_MOH:MOH-%=asterisk-moh-%.tar.gz) MOH_TAGS:=$(MENUSELECT_MOH:MOH-%=$(MOH_DIR)/.asterisk-moh-%) WGET_ARGS:=--continue +all: $(CORE_SOUNDS) $(EXTRA_SOUNDS) $(MOH) + $(SOUNDS_DIR)/.asterisk-core-sounds-en-%: @PACKAGE=$(subst $(SOUNDS_DIR)/.asterisk,asterisk,$@).tar.gz; \ if ! test -f $${PACKAGE}; then wget $(WGET_ARGS) $(SOUNDS_URL)/$${PACKAGE}; fi; \ @@ -92,8 +94,6 @@ asterisk-extra-%.tar.gz: asterisk-moh-%.tar.gz: @wget $(WGET_ARGS) $(MOH_URL)/$@ -all: $(CORE_SOUNDS) $(EXTRA_SOUNDS) $(MOH) - dist-clean: rm -f *.tar.gz