]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
add the 'clean', 'clean-depend', and 'dist-clean' targets as .PHONY targets
authorRussell Bryant <russell@russellbryant.com>
Thu, 22 Jun 2006 11:27:03 +0000 (11:27 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 22 Jun 2006 11:27:03 +0000 (11:27 +0000)
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

13 files changed:
Makefile
agi/Makefile
apps/Makefile
build_tools/Makefile
cdr/Makefile
channels/Makefile
codecs/Makefile
formats/Makefile
funcs/Makefile
pbx/Makefile
res/Makefile
sounds/Makefile
utils/Makefile

index 1617a4f7c91b454742c6736bca9c83482a3bdb78..1b96f69736c59b20619a0790443688833cb11248 100644 (file)
--- 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),)
index 5c9c1f6fd198a12f16996d9c95931bdc5ede3311..e2ca9e19f12c05739e615610cc7cca7e1f7a4be6 100644 (file)
@@ -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=
index 1a93c83e3183dee61808c5d55b5f9878cbc738a1..5826f3581900734ba60c53a3ac0d6eaee0461ac4 100644 (file)
@@ -11,6 +11,8 @@
 # the GNU General Public License
 #
 
+.PHONY: clean clean-depend
+
 ifneq ($(wildcard ../menuselect.makeopts),)
   include ../menuselect.makeopts
 endif
index eb8e6e3a776de5f01c9bf260ff57fa64dc0e2477..9d54b0139ad3ceb3d51504d49732c705f6fad102 100644 (file)
@@ -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
index fbfa17625405acec5296a1909a7a5a5d018d3876..6f3c191aef8c4297bfe7640a4c74eb012bb4d142 100644 (file)
@@ -11,6 +11,8 @@
 # the GNU General Public License
 #
 
+.PHONY: clean clean-depend
+
 ifneq ($(wildcard ../menuselect.makeopts),)
   include ../menuselect.makeopts
 endif
index 84d2651592078afbbb494b2fb3c3d098fd978886..0f36e25e9fd4ead0cf4acf7fdb82b1c68e088a21 100644 (file)
@@ -11,6 +11,8 @@
 # the GNU General Public License
 #
 
+.PHONY: clean clean-depend
+
 ifneq ($(wildcard ../menuselect.makeopts),)
   include ../menuselect.makeopts
 endif
index d4212a87d559168aff1985569be8c441b29e90dd..3938fa8e85c2a759b4fc22cc1b1a481be5f38f65 100644 (file)
@@ -11,6 +11,8 @@
 # the GNU General Public License
 #
 
+.PHONY: clean clean-depend
+
 ifneq ($(wildcard ../menuselect.makeopts),)
   include ../menuselect.makeopts
 endif
index 9913722d631c02afb75c8177bccf67a3c0589332..4dc21f582c6e668863d707cf057f32690c7222ec 100644 (file)
@@ -11,6 +11,8 @@
 # the GNU General Public License
 #
 
+.PHONY: clean clean-depend
+
 ifneq ($(wildcard ../menuselect.makeopts),)
   include ../menuselect.makeopts
 endif
index 414b6fed8f5cf15d1bdec85b46a8586a0152cd28..9ee2bcf009938456ea1811cc338e2383ad1fd636 100644 (file)
@@ -11,6 +11,8 @@
 # the GNU General Public License
 #
 
+.PHONY: clean clean-depend
+
 ifneq ($(wildcard ../menuselect.makeopts),)
   include ../menuselect.makeopts
 endif
index 4c474998d2906a48c98caa86b0c413004ebb859b..3b3dc7599517fd38e2f0ed4e440764eb81453938 100644 (file)
@@ -11,6 +11,8 @@
 # the GNU General Public License
 #
 
+.PHONY: clean clean-depend
+
 ifneq ($(wildcard ../menuselect.makeopts),)
   include ../menuselect.makeopts
 endif
index f4d0f4b1e709422212d2ec81788159bfe7b2bec9..ba83d7d855a76da39a8fec80ccfdf69b35696277 100644 (file)
@@ -11,6 +11,8 @@
 # the GNU General Public License
 #
 
+.PHONY: clean clean-depend
+
 ifneq ($(wildcard ../menuselect.makeopts),)
   include ../menuselect.makeopts
 endif
index 53d6a24bc2a69cf773411f6b7733a48590b69163..5ab9eaf8c9da5032f1c81e096f74660f91d1cbeb 100644 (file)
@@ -11,6 +11,8 @@
 # the GNU General Public License
 #
 
+.PHONY: dist-clean
+
 ifneq ($(wildcard ../menuselect.makeopts),)
   include ../menuselect.makeopts
 endif
index 27d1d39b4ed7167b716b09d34f95200a888f02ad..ed61cd676cb7fc29621b95567d99674eefd1cfca 100644 (file)
@@ -11,6 +11,8 @@
 # the GNU General Public License
 #
 
+.PHONY: clean clean-depend
+
 UTILS:=astman smsq stereorize streamplayer aelparse
 
 ifeq (${OSARCH},SunOS)