/gnulib-local/Makefile.in
# Files generated by "make" and even kept by "make maintainer-clean":
-/gettext-runtime/intl/plural.c
/gettext-runtime/po/en@boldquot.po
/gettext-runtime/po/en@quot.po
/gettext-tools/po/en@boldquot.po
/gettext-tools/libgettextpo/ostream.priv.h
/gettext-tools/libgettextpo/ostream.vt.h
# Files generated by "make", using bison.
+/gettext-runtime/intl/plural.c
/gettext-tools/src/cldr-plural.c
/gettext-tools/src/cldr-plural.h
/gettext-tools/src/po-gram-gen.c
COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
-# This line will be replaced with pluralx.lo, when this file is used
-# in gettext-tools/intl/. See the pluralx.lo rule below for the rationale.
-PLURAL_OBJECT = plural.lo
-
HEADERS = \
gmo.h \
gettextP.h \
dcngettext.lo \
dngettext.lo \
ngettext.lo \
- $(PLURAL_OBJECT) \
+ plural.lo \
plural-exp.lo \
localcharset.lo \
threadlib.lo \
.SUFFIXES:
.SUFFIXES: .c .y .lo .sin .sed
-.y.c:
- $(AM_V_YACC)$(YACC) $(YFLAGS) --output $@ $<
- $(AM_V_at)rm -f $*.h
+$(srcdir)/plural.c: $(srcdir)/plural.y
+ $(AM_V_YACC)$(YACC) $(YFLAGS) --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
bindtextdom.lo: $(srcdir)/bindtextdom.c
$(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/bindtextdom.c
$(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/ngettext.c
plural.lo: $(srcdir)/plural.c
$(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/plural.c
-# $(srcdir)/plural.c contains a relative file name of the Bison source.
-# That could mess up LCOV when the C source file is referred to from a
-# different base directory.
-pluralx.c: $(srcdir)/plural.c
- $(AM_V_GEN)sed -e 's|^#line \([0-9]*\) "\(plural\.[cy]\)"|#line \1 "$(srcdir)/\2"|' < $(srcdir)/plural.c > $@
-pluralx.lo: pluralx.c
- $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) pluralx.c
plural-exp.lo: $(srcdir)/plural-exp.c
$(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/plural-exp.c
localcharset.lo: $(srcdir)/localcharset.c
localename.lo localename-table.lo: localename-table.h
hash-string.lo dcigettext.lo loadmsgcat.lo: $(srcdir)/hash-string.h
explodename.lo l10nflist.lo: $(srcdir)/loadinfo.h
-dcigettext.lo loadmsgcat.lo $(PLURAL_OBJECT) plural-exp.lo: $(srcdir)/plural-exp.h
+dcigettext.lo loadmsgcat.lo plural.lo plural-exp.lo: $(srcdir)/plural-exp.h
dcigettext.lo: $(srcdir)/eval-plural.h
localcharset.lo: $(srcdir)/localcharset.h
bindtextdom.lo dcigettext.lo finddomain.lo loadmsgcat.lo localealias.lo lock.lo log.lo: $(srcdir)/lock.h
# A bison-2.1 generated plural.c includes <libintl.h> if ENABLE_NLS.
PLURAL_DEPS_yes = libintl.h
PLURAL_DEPS_no =
-$(PLURAL_OBJECT): $(PLURAL_DEPS_@USE_INCLUDED_LIBINTL@)
+plural.lo: $(PLURAL_DEPS_@USE_INCLUDED_LIBINTL@)
tags: TAGS
rm -f *.a *.la *.o *.obj *.lo core core.*
rm -f libgnuintl.h libintl.h localename-table.h ref-add.sed ref-del.sed
rm -f -r .libs _libs
- rm -f pluralx.c
+ rm -f plural.c-tmp
clean: mostlyclean
maintainer-clean: distclean
@echo "This command is intended for maintainers to use;"
@echo "it deletes files that may require special tools to rebuild."
+ rm -f $(srcdir)/plural.c
# GNU gettext needs not contain the file 'VERSION' but contains some
/* Expression parsing for plural form selection.
- Copyright (C) 2000-2001, 2003, 2015-2016 Free Software Foundation, Inc.
+ Copyright (C) 2000-2001, 2003, 2014, 2018 Free Software Foundation, Inc.
Written by Ulrich Drepper <drepper@cygnus.com>, 2000.
This program is free software: you can redistribute it and/or modify
/* Include the expression parsing code from libintl, with different function
names. */
-#include "../intl/pluralx.c"
+#include "../../gettext-runtime/intl/plural.c"
#include "../../gettext-runtime/intl/plural-exp.c"