]> granicus.if.org Git - postgresql/commitdiff
Add additional rules so that make init-po for ecpg gets up to date flex and
authorPeter Eisentraut <peter_e@gmx.net>
Fri, 19 Sep 2008 13:08:08 +0000 (13:08 +0000)
committerPeter Eisentraut <peter_e@gmx.net>
Fri, 19 Sep 2008 13:08:08 +0000 (13:08 +0000)
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.

src/interfaces/ecpg/nls.mk

index 675737debfe81de47a495c881938c0da097bd6ff..99957fde7b383d0597c05dbfbd770e61a6e47f9c 100644 (file)
@@ -18,3 +18,14 @@ GETTEXT_FILES        = \
        preproc/type.c \
        preproc/variable.c
 GETTEXT_TRIGGERS = _ mmerror:3 ecpg_gettext ecpg_log:1
+
+
+# Without these rules, make will invoke predefined implicit rules using "lex" 
+# and "yacc", which we don't want.  The prerequisites should be exactly the 
+# same as in preproc/Makefile.
+
+$(srcdir)/preproc/preproc.c: preproc/preproc.y
+       $(MAKE) -C preproc preproc.c
+
+$(srcdir)/preproc/pgc.c: preproc/pgc.l
+       $(MAKE) -C preproc pgc.c