[asterisk-dev] [asterisk-commits] tilghman: branch 1.4 r242423 - /branches/1.4/pbx/Makefile

Tilghman Lesher tlesher at digium.com
Sat Jan 23 11:10:02 CST 2010


On Saturday 23 January 2010 08:55:03 Kevin P. Fleming wrote:
> SVN commits to the Asterisk project wrote:
> > Author: tilghman
> > Date: Fri Jan 22 15:44:18 2010
> > New Revision: 242423
> >
> > URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=242423
> > Log:
> > Rebuild from flex, bison sources when necessary.
> >
> > (issue #14629)
> >  Reported by: Marquis
> >  Patches:
> >        20100121__issue14629.diff.txt uploaded by tilghman (license 14)
> >
> > Modified:
> >     branches/1.4/pbx/Makefile
> >
> > Modified: branches/1.4/pbx/Makefile
> > URL:
> > http://svnview.digium.com/svn/asterisk/branches/1.4/pbx/Makefile?view=dif
> >f&rev=242423&r1=242422&r2=242423
> > =========================================================================
> >===== --- branches/1.4/pbx/Makefile (original)
> > +++ branches/1.4/pbx/Makefile Fri Jan 22 15:44:18 2010
> > @@ -44,11 +44,13 @@
> >
> >  $(if $(filter pbx_ael,$(EMBEDDED_MODS)),modules.link,pbx_ael.so):
> > ael/ael.tab.o ael/ael_lex.o
> >
> > -ael/ael_lex.c:
> > +ael/ael_lex.c: ael/ael.flex
> > +	$(ECHO_PREFIX) echo "   [FLEX] $< -> $@"
> >  	(cd ael; flex ael.flex; sed -i -e "/begin standard C headers/i#include
> > \"asterisk.h\"" ael_lex.c) (cd ael; sed 's@#if __STDC_VERSION__ >=
> > 199901L@#if !defined __STDC_VERSION__ || __STDC_VERSION__ >= 199901L@'
> > ael_lex.c > zz; mv zz ael_lex.c)
> >
> > -ael/ael.tab.c ael/ael.tab.h:
> > +ael/ael.tab.c ael/ael.tab.h: ael/ael.y
> > +	$(ECHO_PREFIX) echo "   [BISON] $< -> $@"
> >  	(cd ael; bison -v -d ael.y)
> >
> >  dundi-parser.o: dundi-parser.h
>
> I don't think this is a good idea; when the source code is checked out
> from Subversion, or unpacked from a tarball, there is no guarantee that
> the timestamp on ael/ael.flex is going to be earlier than (or equal to)
> the timestamp on ael/ael_lex.c. If it is not, and the user's system does
> not have flex, their build of Asterisk will unnecessarily fail.
>
> Since editing ael/ael.flex is *extremely* rare, the Makefiles have
> always been configured to require manual rebuilding of the targets (by
> using (make -C pbx ael/ael_lex.c).

Unfortunately, since we require arguments to be passed to subdirectories, that
command does not work.  We may need to further think about how we're going to
rebuild those, when necessary, because what was there did not work and caused
confusion.  See https://issues.asterisk.org/view.php?id=14629

-- 
Tilghman Lesher
Digium, Inc. | Senior Software Developer
twitter: Corydon76 | IRC: Corydon76-dig (Freenode)
Check us out at: www.digium.com & www.asterisk.org



More information about the asterisk-dev mailing list