[asterisk-commits] rizzo: trunk r94713 - /trunk/channels/Makefile

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Dec 23 06:29:49 CST 2007


Author: rizzo
Date: Sun Dec 23 06:29:48 2007
New Revision: 94713

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


Modified:
    trunk/channels/Makefile

Modified: trunk/channels/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/channels/Makefile?view=diff&rev=94713&r1=94712&r2=94713
==============================================================================
--- trunk/channels/Makefile (original)
+++ trunk/channels/Makefile Sun Dec 23 06:29:48 2007
@@ -89,10 +89,16 @@
 	$(CMD_PREFIX) $(HOST_CC) -o $@ $^ -lm
 
 busy.h: gentone
+	- at mv $@ $@.tmp
 	./gentone busy 480 620
+	@cmp -s $@.tmp $@ && mv $@.tmp $@
+	- at rm -f  $@.tmp
 
 ringtone.h: gentone
+	- at mv $@ $@.tmp
 	./gentone ringtone 440 480
+	@cmp -s $@.tmp $@ && mv $@.tmp $@
+	- at rm -f  $@.tmp
 
 $(if $(filter chan_iax2,$(EMBEDDED_MODS)),modules.link,chan_iax2.so): iax2-parser.o iax2-provision.o
 




More information about the asterisk-commits mailing list