[asterisk-commits] trunk r25565 - in /trunk: Makefile utils/Makefile

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon May 8 07:34:32 MST 2006


Author: kpfleming
Date: Mon May  8 09:34:32 2006
New Revision: 25565

URL: http://svn.digium.com/view/asterisk?rev=25565&view=rev
Log:
don't let make use implicit rules for bison/flex output files

Modified:
    trunk/Makefile
    trunk/utils/Makefile

Modified: trunk/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/Makefile?rev=25565&r1=25564&r2=25565&view=diff
==============================================================================
--- trunk/Makefile (original)
+++ trunk/Makefile Mon May  8 09:34:32 2006
@@ -482,10 +482,10 @@
 endif
 
 ast_expr2.c:
-	bison -d --name-prefix=ast_yy ast_expr2.y -o ast_expr2.c
+	bison -o $@ -d --name-prefix=ast_yy ast_expr2.y
 
 ast_expr2f.c:
-	flex --full ast_expr2.fl
+	flex -o $@ --full ast_expr2.fl
 
 testexpr2: ast_expr2f.c ast_expr2.c ast_expr2.h
 	gcc -g -c -DSTANDALONE ast_expr2f.c

Modified: trunk/utils/Makefile
URL: http://svn.digium.com/view/asterisk/trunk/utils/Makefile?rev=25565&r1=25564&r2=25565&view=diff
==============================================================================
--- trunk/utils/Makefile (original)
+++ trunk/utils/Makefile Mon May  8 09:34:32 2006
@@ -57,7 +57,13 @@
 stereorize: stereorize.o frame.o
 	$(CC) $(CFLAGS) -o stereorize stereorize.o frame.o -lm
 
-.PHONY: ../ast_expr2.c ../ast_expr2f.c ../pbx/ael/aelflex.o ../pbx/ael/aelbison.o ../pbx/pbx_ael.o
+.PHONY: ../pbx/ael/aelflex.o ../pbx/ael/aelbison.o ../pbx/pbx_ael.o
+
+../ast_expr2.c:
+	bison -o $@ -d --name-prefix=ast_yy ../ast_expr2.y
+
+../ast_expr2f.c:
+	flex -o $@ --full ../ast_expr2.fl
 
 ast_expr2.o: ../ast_expr2.c
 	gcc  $(CFLAGS) -c -o $@ $<



More information about the asterisk-commits mailing list