diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-08-14 02:00:28 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-08-14 02:00:28 +0000 |
commit | 6587d2ab753f064b0ec1c7ccfe246b964adf8c81 (patch) | |
tree | 7bbcfe017d6822b46c59701da553e9d5719cee91 /Makefile | |
parent | 360ac7d174cf15d980c25d3dbf80ab152b6e77ef (diff) |
don't include files that cause additional targets to get executed if the target
called was clean, distclean, or update
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@39640 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -131,13 +131,17 @@ ASTCFLAGS= GLOBAL_MAKEOPTS=$(wildcard /etc/asterisk.makeopts) USER_MAKEOPTS=$(wildcard ~/.asterisk.makeopts) -ifneq ($(wildcard menuselect.makeopts),) +ifeq ($(strip $(foreach var,clean distclean dist-clean update,$(findstring $(var),$(MAKECMDGOALS)))),) + ifneq ($(wildcard menuselect.makeopts),) include menuselect.makeopts include menuselect.makedeps + endif endif -ifneq ($(wildcard makeopts),) +ifeq ($(strip $(foreach var,clean distclean dist-clean update,$(findstring $(var),$(MAKECMDGOALS)))),) + ifneq ($(wildcard makeopts),) include makeopts + endif endif TOPDIR_CFLAGS=-Iinclude @@ -431,12 +435,16 @@ editline/libedit.a: db1-ast/libdb1.a: $(MAKE) -C db1-ast libdb1.a -ifneq ($(wildcard .depend),) +ifeq ($(strip $(foreach var,clean distclean dist-clean update,$(findstring $(var),$(MAKECMDGOALS)))),) + ifneq ($(wildcard .depend),) include .depend + endif endif -ifneq ($(wildcard .tags-depend),) +ifeq ($(strip $(foreach var,clean distclean dist-clean update,$(findstring $(var),$(MAKECMDGOALS)))),) + ifneq ($(wildcard .tags-depend),) include .tags-depend + endif endif ast_expr2.c ast_expr2.h: |