don't let make run configure or menuselect if the target is either
authorRussell Bryant <russell@russellbryant.com>
Wed, 12 Jul 2006 19:36:42 +0000 (19:36 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 12 Jul 2006 19:36:42 +0000 (19:36 +0000)
"clean" or "distclean"

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37476 65c4cc65-6c06-0410-ace0-fbb531ad65f3

Makefile

index e21b79a..6245175 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -123,12 +123,16 @@ GLOBAL_MAKEOPTS=$(wildcard /etc/asterisk.makeopts)
 USER_MAKEOPTS=$(wildcard ~/.asterisk.makeopts)
 
 ifneq ($(wildcard menuselect.makeopts),)
 USER_MAKEOPTS=$(wildcard ~/.asterisk.makeopts)
 
 ifneq ($(wildcard menuselect.makeopts),)
+ ifeq ($(findstring clean,$(MAKECMDGOALS))$(findstring distclean,$(MAKECMDGOALS)),)
   include menuselect.makeopts
   include menuselect.makedeps
   include menuselect.makeopts
   include menuselect.makedeps
+ endif
 endif
 
 ifneq ($(wildcard makeopts),)
 endif
 
 ifneq ($(wildcard makeopts),)
+ ifeq ($(findstring clean,$(MAKECMDGOALS))$(findstring distclean,$(MAKECMDGOALS)),)
   include makeopts
   include makeopts
+ endif
 endif
 
 TOPDIR_CFLAGS=-Iinclude
 endif
 
 TOPDIR_CFLAGS=-Iinclude
@@ -423,11 +427,15 @@ db1-ast/libdb1.a:
        $(MAKE) -C db1-ast libdb1.a
 
 ifneq ($(wildcard .depend),)
        $(MAKE) -C db1-ast libdb1.a
 
 ifneq ($(wildcard .depend),)
+ ifeq ($(findstring clean,$(MAKECMDGOALS))$(findstring distclean,$(MAKECMDGOALS)),)
   include .depend
   include .depend
+ endif
 endif
 
 ifneq ($(wildcard .tags-depend),)
 endif
 
 ifneq ($(wildcard .tags-depend),)
+ ifeq ($(findstring clean,$(MAKECMDGOALS))$(findstring distclean,$(MAKECMDGOALS)),)
   include .tags-depend
   include .tags-depend
+ endif
 endif
 
 ast_expr2.c ast_expr2.h:
 endif
 
 ast_expr2.c ast_expr2.h: