aboutsummaryrefslogtreecommitdiffstats
path: root/channels/Makefile
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2007-12-23 12:29:48 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2007-12-23 12:29:48 +0000
commitb7e2b87525ec3798593f3c0e0364f9d3acb9c166 (patch)
treef39ea31c8c5519d16c67b14fa55051f9d32bd01b /channels/Makefile
parentab1d58647de7c66cedc74248c9f32485dfe6ef82 (diff)
avoid rebuilding dependent files if the generated busy.h and ringtone.h
do not change. Ths masks (but does not solve) a but that i am seeing in doing a 'gmake install' without donig a 'gmake all' first. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94713 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/Makefile')
-rw-r--r--channels/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/channels/Makefile b/channels/Makefile
index 50df82c58..757f20967 100644
--- a/channels/Makefile
+++ b/channels/Makefile
@@ -89,10 +89,16 @@ gentone: gentone.c
$(CMD_PREFIX) $(HOST_CC) -o $@ $^ -lm
busy.h: gentone
+ -@mv $@ $@.tmp
./gentone busy 480 620
+ @cmp -s $@.tmp $@ && mv $@.tmp $@
+ -@rm -f $@.tmp
ringtone.h: gentone
+ -@mv $@ $@.tmp
./gentone ringtone 440 480
+ @cmp -s $@.tmp $@ && mv $@.tmp $@
+ -@rm -f $@.tmp
$(if $(filter chan_iax2,$(EMBEDDED_MODS)),modules.link,chan_iax2.so): iax2-parser.o iax2-provision.o