-Drelocate2=libintl_relocate2 \
-DDEPENDS_ON_LIBICONV=1
-YACC = @INTLBISON@ -d
+BISON = @INTLBISON@
+YACC = $(BISON) -d
BISONFLAGS = --name-prefix=__gettext
# Tell the ELF linker which symbols to export.
$(srcdir)/plural.c: $(srcdir)/plural.y
$(AM_V_YACC)$(YACC) $(BISONFLAGS) --output plural.c $(srcdir)/plural.y \
- && sed -e 's|".*/plural.y"|"plural.y"|' < plural.c > plural.c-tmp \
- && rm -f plural.c plural.h \
- && mv plural.c-tmp $(srcdir)/plural.c
+ && test ':' = '$(BISON)' || { \
+ sed -e 's|".*/plural.y"|"plural.y"|' < plural.c > plural.c-tmp \
+ && rm -f plural.c plural.h \
+ && mv plural.c-tmp $(srcdir)/plural.c; \
+ }
# Don't put plural.c into BUILT_SOURCES. Since plural.c is in the source
# directory, 'make' does not find it without a VPATH variable.
MOSTLYCLEANFILES += plural.c-tmp
OTHERPROGDEPENDENCIES = ../gnulib-lib/libgettextlib.la $(WOE32_LDADD)
SED = sed
+BISON = @TOOLS_BISON@
YACC = @YACC@ -d
JAR = @JAR@
JAVACOMP = $(SHELL) ../javacomp.sh
y.tab.h po-gram-gen.h \
y.output po-gram-gen.output \
-- $(YACC) $(YFLAGS) $(AM_YFLAGS) \
- && sed -e 's|".*/po-gram-gen.y"|"po-gram-gen.y"|' < po-gram-gen.c > po-gram-gen.c-tmp \
- && rm -f po-gram-gen.c \
- && mv po-gram-gen.c-tmp $(srcdir)/po-gram-gen.c \
- && { test '$(srcdir)' = . || mv po-gram-gen.h $(srcdir)/po-gram-gen.h; }
+ && test ':' = '$(BISON)' || { \
+ sed -e 's|".*/po-gram-gen.y"|"po-gram-gen.y"|' < po-gram-gen.c > po-gram-gen.c-tmp \
+ && rm -f po-gram-gen.c \
+ && mv po-gram-gen.c-tmp $(srcdir)/po-gram-gen.c \
+ && { test '$(srcdir)' = . || mv po-gram-gen.h $(srcdir)/po-gram-gen.h; }; \
+ }
BUILT_SOURCES += po-gram-gen.c po-gram-gen.h
MOSTLYCLEANFILES += po-gram-gen.c-tmp
MAINTAINERCLEANFILES += po-gram-gen.c po-gram-gen.h
y.tab.h cldr-plural.h \
y.output cldr-plural.output \
-- $(YACC) $(YFLAGS) $(AM_YFLAGS) \
- && sed -e 's|".*/cldr-plural.y"|"cldr-plural.y"|' < cldr-plural.c > cldr-plural.c-tmp \
- && rm -f cldr-plural.c \
- && mv cldr-plural.c-tmp $(srcdir)/cldr-plural.c \
- && { test '$(srcdir)' = . || mv cldr-plural.h $(srcdir)/cldr-plural.h; }
+ && test ':' = '$(BISON)' || { \
+ sed -e 's|".*/cldr-plural.y"|"cldr-plural.y"|' < cldr-plural.c > cldr-plural.c-tmp \
+ && rm -f cldr-plural.c \
+ && mv cldr-plural.c-tmp $(srcdir)/cldr-plural.c \
+ && { test '$(srcdir)' = . || mv cldr-plural.h $(srcdir)/cldr-plural.h; }; \
+ }
BUILT_SOURCES += cldr-plural.c cldr-plural.h
MOSTLYCLEANFILES += cldr-plural.c-tmp
MAINTAINERCLEANFILES += cldr-plural.c cldr-plural.h