summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2006-08-14 02:00:28 +0000
committerRussell Bryant <russell@russellbryant.com>2006-08-14 02:00:28 +0000
commit781f9dbcaf983c9550eda7cdd4933432966f8ace (patch)
tree7bbcfe017d6822b46c59701da553e9d5719cee91 /Makefile
parent87ac16847e99d35417a1ca62847e9310fad8219f (diff)
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
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 12 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 9e250b194..bb0accdf7 100644
--- a/Makefile
+++ b/Makefile
@@ -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: