don't include files that cause additional targets to get executed if the target

called was clean, distclean, or update


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@39640 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.4
Russell Bryant 19 years ago
parent 87ac16847e
commit 781f9dbcaf

@ -131,14 +131,18 @@ ASTCFLAGS=
GLOBAL_MAKEOPTS=$(wildcard /etc/asterisk.makeopts) GLOBAL_MAKEOPTS=$(wildcard /etc/asterisk.makeopts)
USER_MAKEOPTS=$(wildcard ~/.asterisk.makeopts) USER_MAKEOPTS=$(wildcard ~/.asterisk.makeopts)
ifeq ($(strip $(foreach var,clean distclean dist-clean update,$(findstring $(var),$(MAKECMDGOALS)))),)
ifneq ($(wildcard menuselect.makeopts),) ifneq ($(wildcard menuselect.makeopts),)
include menuselect.makeopts include menuselect.makeopts
include menuselect.makedeps include menuselect.makedeps
endif endif
endif
ifeq ($(strip $(foreach var,clean distclean dist-clean update,$(findstring $(var),$(MAKECMDGOALS)))),)
ifneq ($(wildcard makeopts),) ifneq ($(wildcard makeopts),)
include makeopts include makeopts
endif endif
endif
TOPDIR_CFLAGS=-Iinclude TOPDIR_CFLAGS=-Iinclude
MOD_SUBDIR_CFLAGS=-I../include -I.. MOD_SUBDIR_CFLAGS=-I../include -I..
@ -431,13 +435,17 @@ editline/libedit.a:
db1-ast/libdb1.a: db1-ast/libdb1.a:
$(MAKE) -C db1-ast libdb1.a $(MAKE) -C db1-ast libdb1.a
ifeq ($(strip $(foreach var,clean distclean dist-clean update,$(findstring $(var),$(MAKECMDGOALS)))),)
ifneq ($(wildcard .depend),) ifneq ($(wildcard .depend),)
include .depend include .depend
endif endif
endif
ifeq ($(strip $(foreach var,clean distclean dist-clean update,$(findstring $(var),$(MAKECMDGOALS)))),)
ifneq ($(wildcard .tags-depend),) ifneq ($(wildcard .tags-depend),)
include .tags-depend include .tags-depend
endif endif
endif
ast_expr2.c ast_expr2.h: ast_expr2.c ast_expr2.h:
bison -o $@ -d --name-prefix=ast_yy ast_expr2.y bison -o $@ -d --name-prefix=ast_yy ast_expr2.y

Loading…
Cancel
Save