summaryrefslogtreecommitdiff
path: root/channels/Makefile
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2007-12-23 12:29:48 +0000
committerLuigi Rizzo <rizzo@icir.org>2007-12-23 12:29:48 +0000
commit31dcae3ae0ed842cf8d0bacf90315af07f409f82 (patch)
treef39ea31c8c5519d16c67b14fa55051f9d32bd01b /channels/Makefile
parent5a6759885f90eb81b0eb2748d714fe87d23fe78e (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: https://origsvn.digium.com/svn/asterisk/trunk@94713 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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