diff options
author | Kevin B Kenny <kennykb@acm.org> | 2004-09-17 19:41:00 (GMT) |
---|---|---|
committer | Kevin B Kenny <kennykb@acm.org> | 2004-09-17 19:41:00 (GMT) |
commit | fc4d1c3bfa9a6e5870ff9cee0cf575bd625d5b68 (patch) | |
tree | 54762a2862c182afdde27a4393fe8bc772b8ef13 /unix | |
parent | 78d20dd0fad930674c60b4acf7a680392c4e460a (diff) | |
download | tcl-fc4d1c3bfa9a6e5870ff9cee0cf575bd625d5b68.zip tcl-fc4d1c3bfa9a6e5870ff9cee0cf575bd625d5b68.tar.gz tcl-fc4d1c3bfa9a6e5870ff9cee0cf575bd625d5b68.tar.bz2 |
make tclGetDate.y use bison instead of yacc
Diffstat (limited to 'unix')
-rw-r--r-- | unix/Makefile.in | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/unix/Makefile.in b/unix/Makefile.in index f3cccd6..314b0ad 100644 --- a/unix/Makefile.in +++ b/unix/Makefile.in @@ -5,7 +5,7 @@ # "autoconf" program (constructs like "@foo@" will get replaced in the # actual Makefile. # -# RCS: @(#) $Id: Makefile.in,v 1.145 2004/08/31 04:33:36 das Exp $ +# RCS: @(#) $Id: Makefile.in,v 1.146 2004/09/17 19:41:07 kennykb Exp $ VERSION = @TCL_VERSION@ MAJOR_VERSION = @TCL_MAJOR_VERSION@ @@ -571,16 +571,20 @@ topDirName: # so that make doesn't try to automatically regenerate the .c file. gendate: - yacc -l $(GENERIC_DIR)/tclGetDate.y - sed -e 's/yy/TclDate/g' -e '/^#include <values.h>/d' \ - -e 's?SCCSID?RCS: @(#) ?' \ - -e '/#ifdef __STDC__/,/#endif/d' -e '/TclDateerrlab:/d' \ - -e '/TclDatenewstate:/d' -e '/#pragma/d' \ - -e '/#include <inttypes.h>/d' -e 's/const /CONST /g' \ - -e '/#define YYNEW/s/malloc/TclDateAlloc/g' \ - -e '/#define YYENLARGE/,/realloc/s/realloc/TclDateRealloc/g' \ - <y.tab.c >$(GENERIC_DIR)/tclDate.c - rm y.tab.c + bison --output-file=$(GENERIC_DIR)/tclDate.c \ + --name-prefix=TclDate \ + $(GENERIC_DIR)/tclGetDate.y + +# yacc -l $(GENERIC_DIR)/tclGetDate.y +# sed -e 's/yy/TclDate/g' -e '/^#include <values.h>/d' \ +# -e 's?SCCSID?RCS: @(#) ?' \ +# -e '/#ifdef __STDC__/,/#endif/d' -e '/TclDateerrlab:/d' \ +# -e '/TclDatenewstate:/d' -e '/#pragma/d' \ +# -e '/#include <inttypes.h>/d' -e 's/const /CONST /g' \ +# -e '/#define YYNEW/s/malloc/TclDateAlloc/g' \ +# -e '/#define YYENLARGE/,/realloc/s/realloc/TclDateRealloc/g' \ +# <y.tab.c >$(GENERIC_DIR)/tclDate.c +# rm y.tab.c # The following target generates the shared libraries in dltest/ that # are used for testing; they are included as part of the "tcltest" |