GNU make already knows how to quietly ignore non-existent files in 'include' directives
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@41209 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
a757ca2947
commit
d12f54f90b
|
@ -95,9 +95,7 @@ install:: all
|
||||||
|
|
||||||
uninstall::
|
uninstall::
|
||||||
|
|
||||||
ifneq ($(wildcard .depend),)
|
-include .depend
|
||||||
include .depend
|
|
||||||
endif
|
|
||||||
|
|
||||||
depend: .depend
|
depend: .depend
|
||||||
|
|
||||||
|
|
|
@ -40,9 +40,7 @@ clean-depend:
|
||||||
clean: clean-depend
|
clean: clean-depend
|
||||||
rm -f *.so *.o look eagi-test eagi-sphinx-test
|
rm -f *.so *.o look eagi-test eagi-sphinx-test
|
||||||
|
|
||||||
ifneq ($(wildcard .depend),)
|
-include .depend
|
||||||
include .depend
|
|
||||||
endif
|
|
||||||
|
|
||||||
depend: .depend
|
depend: .depend
|
||||||
|
|
||||||
|
|
|
@ -9,10 +9,7 @@
|
||||||
# the GNU General Public License
|
# the GNU General Public License
|
||||||
#
|
#
|
||||||
|
|
||||||
ifneq ($(wildcard $(ASTTOPDIR)/menuselect.makeopts),)
|
-include ../menuselect.makeopts ../menuselect.makedeps
|
||||||
include ../menuselect.makeopts
|
|
||||||
include ../menuselect.makedeps
|
|
||||||
endif
|
|
||||||
|
|
||||||
C_MODS:=$(filter-out $(MENUSELECT_APPS),$(patsubst %.c,%,$(wildcard app_*.c)))
|
C_MODS:=$(filter-out $(MENUSELECT_APPS),$(patsubst %.c,%,$(wildcard app_*.c)))
|
||||||
CC_MODS:=$(filter-out $(MENUSELECT_APPS),$(patsubst %.cc,%,$(wildcard app_*.cc)))
|
CC_MODS:=$(filter-out $(MENUSELECT_APPS),$(patsubst %.cc,%,$(wildcard app_*.cc)))
|
||||||
|
|
|
@ -9,10 +9,7 @@
|
||||||
# the GNU General Public License
|
# the GNU General Public License
|
||||||
#
|
#
|
||||||
|
|
||||||
ifneq ($(wildcard $(ASTTOPDIR)/menuselect.makeopts),)
|
-include ../menuselect.makeopts ../menuselect.makedeps
|
||||||
include ../menuselect.makeopts
|
|
||||||
include ../menuselect.makedeps
|
|
||||||
endif
|
|
||||||
|
|
||||||
C_MODS:=$(filter-out $(MENUSELECT_CDR),$(patsubst %.c,%,$(wildcard cdr_*.c)))
|
C_MODS:=$(filter-out $(MENUSELECT_CDR),$(patsubst %.c,%,$(wildcard cdr_*.c)))
|
||||||
CC_MODS:=$(filter-out $(MENUSELECT_CDR),$(patsubst %.cc,%,$(wildcard cdr_*.cc)))
|
CC_MODS:=$(filter-out $(MENUSELECT_CDR),$(patsubst %.cc,%,$(wildcard cdr_*.cc)))
|
||||||
|
|
|
@ -9,10 +9,7 @@
|
||||||
# the GNU General Public License
|
# the GNU General Public License
|
||||||
#
|
#
|
||||||
|
|
||||||
ifneq ($(wildcard $(ASTTOPDIR)/menuselect.makeopts),)
|
-include ../menuselect.makeopts ../menuselect.makedeps
|
||||||
include ../menuselect.makeopts
|
|
||||||
include ../menuselect.makedeps
|
|
||||||
endif
|
|
||||||
|
|
||||||
C_MODS:=$(filter-out $(MENUSELECT_CHANNELS),$(patsubst %.c,%,$(wildcard chan_*.c)))
|
C_MODS:=$(filter-out $(MENUSELECT_CHANNELS),$(patsubst %.c,%,$(wildcard chan_*.c)))
|
||||||
CC_MODS:=$(filter-out $(MENUSELECT_CHANNELS),$(patsubst %.cc,%,$(wildcard chan_*.cc)))
|
CC_MODS:=$(filter-out $(MENUSELECT_CHANNELS),$(patsubst %.cc,%,$(wildcard chan_*.cc)))
|
||||||
|
@ -66,9 +63,7 @@ clean::
|
||||||
rm -f busy.h ringtone.h gentone
|
rm -f busy.h ringtone.h gentone
|
||||||
$(MAKE) -C misdn clean
|
$(MAKE) -C misdn clean
|
||||||
|
|
||||||
ifneq ($(wildcard $(PWD)/Makefile.ast),)
|
-include $(PWD)/Makefile.ast
|
||||||
include $(PWD)/Makefile.ast
|
|
||||||
endif
|
|
||||||
|
|
||||||
$(eval $(call ast_make_final_host,gentone,gentone.c))
|
$(eval $(call ast_make_final_host,gentone,gentone.c))
|
||||||
gentone: LIBS+=-lm
|
gentone: LIBS+=-lm
|
||||||
|
|
|
@ -11,10 +11,7 @@
|
||||||
# the GNU General Public License
|
# the GNU General Public License
|
||||||
#
|
#
|
||||||
|
|
||||||
ifneq ($(wildcard $(ASTTOPDIR)/menuselect.makeopts),)
|
-include ../menuselect.makeopts ../menuselect.makedeps
|
||||||
include ../menuselect.makeopts
|
|
||||||
include ../menuselect.makedeps
|
|
||||||
endif
|
|
||||||
|
|
||||||
C_MODS:=$(filter-out $(MENUSELECT_CODECS),$(patsubst %.c,%,$(wildcard codec_*.c)))
|
C_MODS:=$(filter-out $(MENUSELECT_CODECS),$(patsubst %.c,%,$(wildcard codec_*.c)))
|
||||||
CC_MODS:=$(filter-out $(MENUSELECT_CODECS),$(patsubst %.cc,%,$(wildcard codec_*.cc)))
|
CC_MODS:=$(filter-out $(MENUSELECT_CODECS),$(patsubst %.cc,%,$(wildcard codec_*.cc)))
|
||||||
|
|
|
@ -9,10 +9,7 @@
|
||||||
# the GNU General Public License
|
# the GNU General Public License
|
||||||
#
|
#
|
||||||
|
|
||||||
ifneq ($(wildcard $(ASTTOPDIR)/menuselect.makeopts),)
|
-include ../menuselect.makeopts ../menuselect.makedeps
|
||||||
include ../menuselect.makeopts
|
|
||||||
include ../menuselect.makedeps
|
|
||||||
endif
|
|
||||||
|
|
||||||
C_MODS:=$(filter-out $(MENUSELECT_FORMATS),$(patsubst %.c,%,$(wildcard format_*.c)))
|
C_MODS:=$(filter-out $(MENUSELECT_FORMATS),$(patsubst %.c,%,$(wildcard format_*.c)))
|
||||||
CC_MODS:=$(filter-out $(MENUSELECT_FORMATS),$(patsubst %.cc,%,$(wildcard format_*.cc)))
|
CC_MODS:=$(filter-out $(MENUSELECT_FORMATS),$(patsubst %.cc,%,$(wildcard format_*.cc)))
|
||||||
|
|
|
@ -9,10 +9,7 @@
|
||||||
# the GNU General Public License
|
# the GNU General Public License
|
||||||
#
|
#
|
||||||
|
|
||||||
ifneq ($(wildcard $(ASTTOPDIR)/menuselect.makeopts),)
|
-include ../menuselect.makeopts ../menuselect.makedeps
|
||||||
include ../menuselect.makeopts
|
|
||||||
include ../menuselect.makedeps
|
|
||||||
endif
|
|
||||||
|
|
||||||
C_MODS:=$(filter-out $(MENUSELECT_FUNCS),$(patsubst %.c,%,$(wildcard func_*.c)))
|
C_MODS:=$(filter-out $(MENUSELECT_FUNCS),$(patsubst %.c,%,$(wildcard func_*.c)))
|
||||||
CC_MODS:=$(filter-out $(MENUSELECT_FUNCS),$(patsubst %.cc,%,$(wildcard func_*.cc)))
|
CC_MODS:=$(filter-out $(MENUSELECT_FUNCS),$(patsubst %.cc,%,$(wildcard func_*.cc)))
|
||||||
|
|
|
@ -11,14 +11,7 @@
|
||||||
# the GNU General Public License
|
# the GNU General Public License
|
||||||
#
|
#
|
||||||
|
|
||||||
ifneq ($(wildcard $(ASTTOPDIR)/menuselect.makeopts),)
|
-include $(ASTTOPDIR)/menuselect.makeopts $(ASTTOPDIR)/menuselect.makedeps $(ASTTOPDIR)/makeopts.embed_rules
|
||||||
include $(ASTTOPDIR)/menuselect.makeopts
|
|
||||||
include $(ASTTOPDIR)/menuselect.makedeps
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifneq ($(wildcard $(ASTTOPDIR)/makeopts.embed_rules),)
|
|
||||||
include $(ASTTOPDIR)/makeopts.embed_rules
|
|
||||||
endif
|
|
||||||
|
|
||||||
all: asterisk
|
all: asterisk
|
||||||
|
|
||||||
|
|
|
@ -9,10 +9,7 @@
|
||||||
# the GNU General Public License
|
# the GNU General Public License
|
||||||
#
|
#
|
||||||
|
|
||||||
ifneq ($(wildcard $(ASTTOPDIR)/menuselect.makeopts),)
|
-include ../menuselect.makeopts ../menuselect.makedeps
|
||||||
include ../menuselect.makeopts
|
|
||||||
include ../menuselect.makedeps
|
|
||||||
endif
|
|
||||||
|
|
||||||
C_MODS:=$(filter-out $(MENUSELECT_PBX),$(patsubst %.c,%,$(wildcard pbx_*.c)))
|
C_MODS:=$(filter-out $(MENUSELECT_PBX),$(patsubst %.c,%,$(wildcard pbx_*.c)))
|
||||||
CC_MODS:=$(filter-out $(MENUSELECT_PBX),$(patsubst %.cc,%,$(wildcard pbx_*.cc)))
|
CC_MODS:=$(filter-out $(MENUSELECT_PBX),$(patsubst %.cc,%,$(wildcard pbx_*.cc)))
|
||||||
|
|
|
@ -9,10 +9,7 @@
|
||||||
# the GNU General Public License
|
# the GNU General Public License
|
||||||
#
|
#
|
||||||
|
|
||||||
ifneq ($(wildcard $(ASTTOPDIR)/menuselect.makeopts),)
|
-include ../menuselect.makeopts ../menuselect.makedeps
|
||||||
include ../menuselect.makeopts
|
|
||||||
include ../menuselect.makedeps
|
|
||||||
endif
|
|
||||||
|
|
||||||
C_MODS:=$(filter-out $(MENUSELECT_RES),$(patsubst %.c,%,$(wildcard res_*.c)))
|
C_MODS:=$(filter-out $(MENUSELECT_RES),$(patsubst %.c,%,$(wildcard res_*.c)))
|
||||||
CC_MODS:=$(filter-out $(MENUSELECT_RES),$(patsubst %.cc,%,$(wildcard res_*.cc)))
|
CC_MODS:=$(filter-out $(MENUSELECT_RES),$(patsubst %.cc,%,$(wildcard res_*.cc)))
|
||||||
|
|
|
@ -13,9 +13,7 @@
|
||||||
|
|
||||||
.PHONY: dist-clean all uninstall
|
.PHONY: dist-clean all uninstall
|
||||||
|
|
||||||
ifneq ($(wildcard $(ASTTOPDIR)/menuselect.makeopts),)
|
-include $(ASTTOPDIR)/menuselect.makeopts
|
||||||
include $(ASTTOPDIR)/menuselect.makeopts
|
|
||||||
endif
|
|
||||||
|
|
||||||
PWD:=$(shell pwd)
|
PWD:=$(shell pwd)
|
||||||
SOUNDS_DIR:=$(DESTDIR)$(ASTDATADIR)/sounds
|
SOUNDS_DIR:=$(DESTDIR)$(ASTDATADIR)/sounds
|
||||||
|
|
|
@ -100,9 +100,7 @@ streamplayer: streamplayer.o
|
||||||
muted: muted.o
|
muted: muted.o
|
||||||
muted: LIBS+=$(AUDIO_LIBS)
|
muted: LIBS+=$(AUDIO_LIBS)
|
||||||
|
|
||||||
ifneq ($(wildcard .depend),)
|
-include .depend
|
||||||
include .depend
|
|
||||||
endif
|
|
||||||
|
|
||||||
depend: .depend
|
depend: .depend
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue