From c399a06450d35aada550b349861a7b281b50f164 Mon Sep 17 00:00:00 2001 From: Russell Bryant <russell@russellbryant.com> Date: Thu, 22 Jun 2006 11:27:03 +0000 Subject: [PATCH] add the 'clean', 'clean-depend', and 'dist-clean' targets as .PHONY targets since they are targets that do not have resulting files and are never listed as prerequisites to real targets. Using .PHONY in this manner improves make performance by never having to check for resulting files. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@35415 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- Makefile | 3 ++- agi/Makefile | 2 ++ apps/Makefile | 2 ++ build_tools/Makefile | 2 ++ cdr/Makefile | 2 ++ channels/Makefile | 2 ++ codecs/Makefile | 2 ++ formats/Makefile | 2 ++ funcs/Makefile | 2 ++ pbx/Makefile | 2 ++ res/Makefile | 2 ++ sounds/Makefile | 2 ++ utils/Makefile | 2 ++ 13 files changed, 26 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1617a4f7c9..1b96f69736 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ .EXPORT_ALL_VARIABLES: -.PHONY: sounds +.PHONY: sounds clean clean-depend dist-clean # Create OPTIONS variable OPTIONS= @@ -387,6 +387,7 @@ makeopts: configure @exit 1 menuselect.makeopts: build_tools/menuselect makeopts.xml + @echo "WTF WTF WTF WTF" @build_tools/menuselect --check-deps ${GLOBAL_MAKEOPTS} ${USER_MAKEOPTS} $@ #ifneq ($(wildcard tags),) diff --git a/agi/Makefile b/agi/Makefile index 5c9c1f6fd1..e2ca9e19f1 100644 --- a/agi/Makefile +++ b/agi/Makefile @@ -11,6 +11,8 @@ # the GNU General Public License # +.PHONY: clean clean-depend + AGIS=agi-test.agi eagi-test eagi-sphinx-test jukebox.agi LIBS= diff --git a/apps/Makefile b/apps/Makefile index 1a93c83e31..5826f35819 100644 --- a/apps/Makefile +++ b/apps/Makefile @@ -11,6 +11,8 @@ # the GNU General Public License # +.PHONY: clean clean-depend + ifneq ($(wildcard ../menuselect.makeopts),) include ../menuselect.makeopts endif diff --git a/build_tools/Makefile b/build_tools/Makefile index eb8e6e3a77..9d54b0139a 100644 --- a/build_tools/Makefile +++ b/build_tools/Makefile @@ -1,3 +1,5 @@ +.PHONY: clean dist-clean + MENUSELECT_OBJS=menuselect.o menuselect_curses.o MENUSELECT_CFLAGS=-g -c -D_GNU_SOURCE -DMENUSELECT -I../ -I../include/ MENUSELECT_LIBS=../mxml/libmxml.a diff --git a/cdr/Makefile b/cdr/Makefile index fbfa176254..6f3c191aef 100644 --- a/cdr/Makefile +++ b/cdr/Makefile @@ -11,6 +11,8 @@ # the GNU General Public License # +.PHONY: clean clean-depend + ifneq ($(wildcard ../menuselect.makeopts),) include ../menuselect.makeopts endif diff --git a/channels/Makefile b/channels/Makefile index 84d2651592..0f36e25e9f 100644 --- a/channels/Makefile +++ b/channels/Makefile @@ -11,6 +11,8 @@ # the GNU General Public License # +.PHONY: clean clean-depend + ifneq ($(wildcard ../menuselect.makeopts),) include ../menuselect.makeopts endif diff --git a/codecs/Makefile b/codecs/Makefile index d4212a87d5..3938fa8e85 100644 --- a/codecs/Makefile +++ b/codecs/Makefile @@ -11,6 +11,8 @@ # the GNU General Public License # +.PHONY: clean clean-depend + ifneq ($(wildcard ../menuselect.makeopts),) include ../menuselect.makeopts endif diff --git a/formats/Makefile b/formats/Makefile index 9913722d63..4dc21f582c 100644 --- a/formats/Makefile +++ b/formats/Makefile @@ -11,6 +11,8 @@ # the GNU General Public License # +.PHONY: clean clean-depend + ifneq ($(wildcard ../menuselect.makeopts),) include ../menuselect.makeopts endif diff --git a/funcs/Makefile b/funcs/Makefile index 414b6fed8f..9ee2bcf009 100644 --- a/funcs/Makefile +++ b/funcs/Makefile @@ -11,6 +11,8 @@ # the GNU General Public License # +.PHONY: clean clean-depend + ifneq ($(wildcard ../menuselect.makeopts),) include ../menuselect.makeopts endif diff --git a/pbx/Makefile b/pbx/Makefile index 4c474998d2..3b3dc75995 100644 --- a/pbx/Makefile +++ b/pbx/Makefile @@ -11,6 +11,8 @@ # the GNU General Public License # +.PHONY: clean clean-depend + ifneq ($(wildcard ../menuselect.makeopts),) include ../menuselect.makeopts endif diff --git a/res/Makefile b/res/Makefile index f4d0f4b1e7..ba83d7d855 100644 --- a/res/Makefile +++ b/res/Makefile @@ -11,6 +11,8 @@ # the GNU General Public License # +.PHONY: clean clean-depend + ifneq ($(wildcard ../menuselect.makeopts),) include ../menuselect.makeopts endif diff --git a/sounds/Makefile b/sounds/Makefile index 53d6a24bc2..5ab9eaf8c9 100644 --- a/sounds/Makefile +++ b/sounds/Makefile @@ -11,6 +11,8 @@ # the GNU General Public License # +.PHONY: dist-clean + ifneq ($(wildcard ../menuselect.makeopts),) include ../menuselect.makeopts endif diff --git a/utils/Makefile b/utils/Makefile index 27d1d39b4e..ed61cd676c 100644 --- a/utils/Makefile +++ b/utils/Makefile @@ -11,6 +11,8 @@ # the GNU General Public License # +.PHONY: clean clean-depend + UTILS:=astman smsq stereorize streamplayer aelparse ifeq (${OSARCH},SunOS) -- GitLab