Mercurial > hg > octave-lyh
changeset 17361:de4cf28c7e11
Don't make oct-tex-lexer.ll and oct-tex-symbols.cc dependent on Makefile (bug #39896).
* libinter/corefcn/modules.mk (oct-tex-lexer.ll, oct-tex-symbols.cc):
Change dependency from Makefile to Makefile.am.
author | Michael Goffioul <michael.goffioul@gmail.com> |
---|---|
date | Fri, 30 Aug 2013 10:51:19 -0400 |
parents | 4a348443de9b |
children | 040752d07240 |
files | libinterp/corefcn/module.mk |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/module.mk +++ b/libinterp/corefcn/module.mk @@ -301,11 +301,11 @@ corefcn/oct-tex-lexer.cc: LEX_OUTPUT_ROOT := lex.octave_tex_ corefcn/oct-tex-parser.h: corefcn/oct-tex-parser.yy -corefcn/oct-tex-lexer.ll: corefcn/oct-tex-lexer.in.ll corefcn/oct-tex-symbols.in Makefile +corefcn/oct-tex-lexer.ll: corefcn/oct-tex-lexer.in.ll corefcn/oct-tex-symbols.in Makefile.am $(AWK) 'BEGIN { print "/* DO NOT EDIT. AUTOMATICALLY GENERATED FROM oct-tex-lexer.in.ll and oct-tex-symbols.in. */"; } /^@SYMBOL_RULES@$$/ { count = 0; while (getline < "$(srcdir)/corefcn/oct-tex-symbols.in") { if ($$0 !~ /^#.*/ && NF == 3) { printf("\"\\\\%s\" { yylval->sym = %d; return SYM; }\n", $$1, count); count++; } } getline } ! /^@SYMBOL_RULES@$$/ { print }' $< > $@-t mv $@-t $@ -corefcn/oct-tex-symbols.cc: corefcn/oct-tex-symbols.in Makefile +corefcn/oct-tex-symbols.cc: corefcn/oct-tex-symbols.in Makefile.am $(AWK) 'BEGIN { print "// DO NOT EDIT. AUTOMATICALLY GENERATED FROM oct-tex-symbols.in."; print "static uint32_t symbol_codes[][2] = {"; count = 0; } END { print "};"; printf("static int num_symbol_codes = %d;\n", count); } /^#/ { } { if (NF == 3) { printf(" { %s, %s },\n", $$2, $$3); count++; } }' $< > $@-t mv $@-t $@