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
This commit is contained in:
Russell Bryant 2006-06-22 11:27:03 +00:00
parent f601dd80fa
commit c399a06450
13 changed files with 26 additions and 1 deletions

View File

@ -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),)

View 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=

View File

@ -11,6 +11,8 @@
# the GNU General Public License
#
.PHONY: clean clean-depend
ifneq ($(wildcard ../menuselect.makeopts),)
include ../menuselect.makeopts
endif

View 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

View File

@ -11,6 +11,8 @@
# the GNU General Public License
#
.PHONY: clean clean-depend
ifneq ($(wildcard ../menuselect.makeopts),)
include ../menuselect.makeopts
endif

View File

@ -11,6 +11,8 @@
# the GNU General Public License
#
.PHONY: clean clean-depend
ifneq ($(wildcard ../menuselect.makeopts),)
include ../menuselect.makeopts
endif

View File

@ -11,6 +11,8 @@
# the GNU General Public License
#
.PHONY: clean clean-depend
ifneq ($(wildcard ../menuselect.makeopts),)
include ../menuselect.makeopts
endif

View File

@ -11,6 +11,8 @@
# the GNU General Public License
#
.PHONY: clean clean-depend
ifneq ($(wildcard ../menuselect.makeopts),)
include ../menuselect.makeopts
endif

View File

@ -11,6 +11,8 @@
# the GNU General Public License
#
.PHONY: clean clean-depend
ifneq ($(wildcard ../menuselect.makeopts),)
include ../menuselect.makeopts
endif

View File

@ -11,6 +11,8 @@
# the GNU General Public License
#
.PHONY: clean clean-depend
ifneq ($(wildcard ../menuselect.makeopts),)
include ../menuselect.makeopts
endif

View File

@ -11,6 +11,8 @@
# the GNU General Public License
#
.PHONY: clean clean-depend
ifneq ($(wildcard ../menuselect.makeopts),)
include ../menuselect.makeopts
endif

View File

@ -11,6 +11,8 @@
# the GNU General Public License
#
.PHONY: dist-clean
ifneq ($(wildcard ../menuselect.makeopts),)
include ../menuselect.makeopts
endif

View File

@ -11,6 +11,8 @@
# the GNU General Public License
#
.PHONY: clean clean-depend
UTILS:=astman smsq stereorize streamplayer aelparse
ifeq (${OSARCH},SunOS)