Skip to content

Commit 90d9108

Browse files
committed
Add additional rules so that make init-po for ecpg gets up to date flex and
bison output. Without these, make can sometimes be tempted to invoke its built-in rules using lex and yacc, which can fail if those commands are not available. This was a main cause for the NLS web site breakage.
1 parent 5817d86 commit 90d9108

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/interfaces/ecpg/nls.mk

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,14 @@ GETTEXT_FILES = \
1818
preproc/type.c \
1919
preproc/variable.c
2020
GETTEXT_TRIGGERS = _ mmerror:3 ecpg_gettext ecpg_log:1
21+
22+
23+
# Without these rules, make will invoke predefined implicit rules using "lex"
24+
# and "yacc", which we don't want. The prerequisites should be exactly the
25+
# same as in preproc/Makefile.
26+
27+
$(srcdir)/preproc/preproc.c: preproc/preproc.y
28+
$(MAKE) -C preproc preproc.c
29+
30+
$(srcdir)/preproc/pgc.c: preproc/pgc.l
31+
$(MAKE) -C preproc pgc.c

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy