summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2006-06-22 11:27:03 +0000
committerRussell Bryant <russell@russellbryant.com>2006-06-22 11:27:03 +0000
commitc399a06450d35aada550b349861a7b281b50f164 (patch)
tree8fae030e65855b248a90da016abcfa9e42710145
parentf601dd80fac467e62551f3abe7fe9fe715b10f1f (diff)
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
-rw-r--r--Makefile3
-rw-r--r--agi/Makefile2
-rw-r--r--apps/Makefile2
-rw-r--r--build_tools/Makefile2
-rw-r--r--cdr/Makefile2
-rw-r--r--channels/Makefile2
-rw-r--r--codecs/Makefile2
-rw-r--r--formats/Makefile2
-rw-r--r--funcs/Makefile2
-rw-r--r--pbx/Makefile2
-rw-r--r--res/Makefile2
-rw-r--r--sounds/Makefile2
-rw-r--r--utils/Makefile2
13 files changed, 26 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1617a4f7c..1b96f6973 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 5c9c1f6fd..e2ca9e19f 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 1a93c83e3..5826f3581 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 eb8e6e3a7..9d54b0139 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 fbfa17625..6f3c191ae 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 84d265159..0f36e25e9 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 d4212a87d..3938fa8e8 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 9913722d6..4dc21f582 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 414b6fed8..9ee2bcf00 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 4c474998d..3b3dc7599 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 f4d0f4b1e..ba83d7d85 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 53d6a24bc..5ab9eaf8c 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 27d1d39b4..ed61cd676 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)