[asterisk-commits] dlee: trunk r384546 - in /trunk: ./ Makefile
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Apr 2 12:35:49 CDT 2013
Author: dlee
Date: Tue Apr 2 12:35:45 2013
New Revision: 384546
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=384546
Log:
Fixed spurious rebuilds of func_version.
func_version.so was being rebuilt every time, because build.h was
changing every build, because of the cleantest dependency that was
added in r384410 to fix parallel make bugs.
Now build.h will only be created if it does not exist, which was the
original behavior of the Makefile.
........
Merged revisions 384544 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 384545 from http://svn.asterisk.org/svn/asterisk/branches/11
Modified:
trunk/ (props changed)
trunk/Makefile
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-11-merged' - no diff available.
Modified: trunk/Makefile
URL: http://svnview.digium.com/svn/asterisk/trunk/Makefile?view=diff&rev=384546&r1=384545&r2=384546
==============================================================================
--- trunk/Makefile (original)
+++ trunk/Makefile Tue Apr 2 12:35:45 2013
@@ -392,10 +392,11 @@
@cmp -s $@.tmp $@ || mv $@.tmp $@
@rm -f $@.tmp
+# build.h must depend on cleantest, or parallel make may wipe it out after it's
+# been created. But since build.h contains a timestamp, the cmp trick used above
+# won't work. Just testing for existence is good enough.
include/asterisk/build.h: cleantest
- @build_tools/make_build_h > $@.tmp
- @cmp -s $@.tmp $@ || mv $@.tmp $@
- @rm -f $@.tmp
+ @test -f $@ || build_tools/make_build_h > $@
$(SUBDIRS_CLEAN):
+@$(SUBMAKE) -C $(@:-clean=) clean
More information about the asterisk-commits
mailing list