[asterisk-commits] trunk r35415 - in /trunk: ./ agi/ apps/ build_tools/ cdr/ channels/ codecs/ f...

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Jun 22 04:27:04 MST 2006


Author: russell
Date: Thu Jun 22 06:27:03 2006
New Revision: 35415

URL: http://svn.digium.com/view/asterisk?rev=35415&view=rev
Log:
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.

Modified:
    trunk/Makefile
    trunk/agi/Makefile
    trunk/apps/Makefile
    trunk/build_tools/Makefile
    trunk/cdr/Makefile
    trunk/channels/Makefile
    trunk/codecs/Makefile
    trunk/formats/Makefile
    trunk/funcs/Makefile
    trunk/pbx/Makefile
    trunk/res/Makefile
    trunk/sounds/Makefile
    trunk/utils/Makefile

Modified: trunk/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/Makefile?rev=35415&r1=35414&r2=35415&view=diff
==============================================================================
--- trunk/Makefile (original)
+++ trunk/Makefile Thu Jun 22 06:27:03 2006
@@ -13,7 +13,7 @@
 
 .EXPORT_ALL_VARIABLES:
 
-.PHONY: sounds
+.PHONY: sounds clean clean-depend dist-clean
 
 # Create OPTIONS variable
 OPTIONS=
@@ -387,6 +387,7 @@
 	@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),)

Modified: trunk/agi/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/agi/Makefile?rev=35415&r1=35414&r2=35415&view=diff
==============================================================================
--- trunk/agi/Makefile (original)
+++ trunk/agi/Makefile Thu Jun 22 06:27:03 2006
@@ -10,6 +10,8 @@
 # This program is free software, distributed under the terms of
 # the GNU General Public License
 #
+
+.PHONY: clean clean-depend
 
 AGIS=agi-test.agi eagi-test eagi-sphinx-test jukebox.agi
 

Modified: trunk/apps/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/apps/Makefile?rev=35415&r1=35414&r2=35415&view=diff
==============================================================================
--- trunk/apps/Makefile (original)
+++ trunk/apps/Makefile Thu Jun 22 06:27:03 2006
@@ -10,6 +10,8 @@
 # This program is free software, distributed under the terms of
 # the GNU General Public License
 #
+
+.PHONY: clean clean-depend
 
 ifneq ($(wildcard ../menuselect.makeopts),)
   include ../menuselect.makeopts

Modified: trunk/build_tools/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/build_tools/Makefile?rev=35415&r1=35414&r2=35415&view=diff
==============================================================================
--- trunk/build_tools/Makefile (original)
+++ trunk/build_tools/Makefile Thu Jun 22 06:27:03 2006
@@ -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

Modified: trunk/cdr/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/cdr/Makefile?rev=35415&r1=35414&r2=35415&view=diff
==============================================================================
--- trunk/cdr/Makefile (original)
+++ trunk/cdr/Makefile Thu Jun 22 06:27:03 2006
@@ -10,6 +10,8 @@
 # This program is free software, distributed under the terms of
 # the GNU General Public License
 #
+
+.PHONY: clean clean-depend
 
 ifneq ($(wildcard ../menuselect.makeopts),)
   include ../menuselect.makeopts

Modified: trunk/channels/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/channels/Makefile?rev=35415&r1=35414&r2=35415&view=diff
==============================================================================
--- trunk/channels/Makefile (original)
+++ trunk/channels/Makefile Thu Jun 22 06:27:03 2006
@@ -10,6 +10,8 @@
 # This program is free software, distributed under the terms of
 # the GNU General Public License
 #
+
+.PHONY: clean clean-depend
 
 ifneq ($(wildcard ../menuselect.makeopts),)
   include ../menuselect.makeopts

Modified: trunk/codecs/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/codecs/Makefile?rev=35415&r1=35414&r2=35415&view=diff
==============================================================================
--- trunk/codecs/Makefile (original)
+++ trunk/codecs/Makefile Thu Jun 22 06:27:03 2006
@@ -10,6 +10,8 @@
 # This program is free software, distributed under the terms of
 # the GNU General Public License
 #
+
+.PHONY: clean clean-depend
 
 ifneq ($(wildcard ../menuselect.makeopts),)
   include ../menuselect.makeopts

Modified: trunk/formats/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/formats/Makefile?rev=35415&r1=35414&r2=35415&view=diff
==============================================================================
--- trunk/formats/Makefile (original)
+++ trunk/formats/Makefile Thu Jun 22 06:27:03 2006
@@ -10,6 +10,8 @@
 # This program is free software, distributed under the terms of
 # the GNU General Public License
 #
+
+.PHONY: clean clean-depend
 
 ifneq ($(wildcard ../menuselect.makeopts),)
   include ../menuselect.makeopts

Modified: trunk/funcs/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/funcs/Makefile?rev=35415&r1=35414&r2=35415&view=diff
==============================================================================
--- trunk/funcs/Makefile (original)
+++ trunk/funcs/Makefile Thu Jun 22 06:27:03 2006
@@ -10,6 +10,8 @@
 # This program is free software, distributed under the terms of
 # the GNU General Public License
 #
+
+.PHONY: clean clean-depend
 
 ifneq ($(wildcard ../menuselect.makeopts),)
   include ../menuselect.makeopts

Modified: trunk/pbx/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/pbx/Makefile?rev=35415&r1=35414&r2=35415&view=diff
==============================================================================
--- trunk/pbx/Makefile (original)
+++ trunk/pbx/Makefile Thu Jun 22 06:27:03 2006
@@ -10,6 +10,8 @@
 # This program is free software, distributed under the terms of
 # the GNU General Public License
 #
+
+.PHONY: clean clean-depend
 
 ifneq ($(wildcard ../menuselect.makeopts),)
   include ../menuselect.makeopts

Modified: trunk/res/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/res/Makefile?rev=35415&r1=35414&r2=35415&view=diff
==============================================================================
--- trunk/res/Makefile (original)
+++ trunk/res/Makefile Thu Jun 22 06:27:03 2006
@@ -10,6 +10,8 @@
 # This program is free software, distributed under the terms of
 # the GNU General Public License
 #
+
+.PHONY: clean clean-depend
 
 ifneq ($(wildcard ../menuselect.makeopts),)
   include ../menuselect.makeopts

Modified: trunk/sounds/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/sounds/Makefile?rev=35415&r1=35414&r2=35415&view=diff
==============================================================================
--- trunk/sounds/Makefile (original)
+++ trunk/sounds/Makefile Thu Jun 22 06:27:03 2006
@@ -10,6 +10,8 @@
 # This program is free software, distributed under the terms of
 # the GNU General Public License
 #
+
+.PHONY: dist-clean
 
 ifneq ($(wildcard ../menuselect.makeopts),)
   include ../menuselect.makeopts

Modified: trunk/utils/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/utils/Makefile?rev=35415&r1=35414&r2=35415&view=diff
==============================================================================
--- trunk/utils/Makefile (original)
+++ trunk/utils/Makefile Thu Jun 22 06:27:03 2006
@@ -10,6 +10,8 @@
 # This program is free software, distributed under the terms of
 # the GNU General Public License
 #
+
+.PHONY: clean clean-depend
 
 UTILS:=astman smsq stereorize streamplayer aelparse
 



More information about the asterisk-commits mailing list