aboutsummaryrefslogtreecommitdiff
path: root/intl/Makefile
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-02-05 23:00:02 +0000
committerUlrich Drepper <drepper@redhat.com>2001-02-05 23:00:02 +0000
commitae113383fe0eb948c6b9755206ec9e3253b3d88d (patch)
tree0f42dca8f6d08a3b1abbd08717be76499279cdfa /intl/Makefile
parent2de00372a5a4b630478b6f3a8564b6225318ad14 (diff)
downloadglibc-ae113383fe0eb948c6b9755206ec9e3253b3d88d.zip
glibc-ae113383fe0eb948c6b9755206ec9e3253b3d88d.tar.gz
glibc-ae113383fe0eb948c6b9755206ec9e3253b3d88d.tar.bz2
Update.
2001-02-05 Ulrich Drepper <drepper@redhat.com> * configure.in: Add check for bison. * config.make.in: Define BISON variable. * intl/Makefile: Use BISON instead of YACC when generating plural.c. Rename YFLAGS to BISONFLAGS.
Diffstat (limited to 'intl/Makefile')
-rw-r--r--intl/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/intl/Makefile b/intl/Makefile
index fd24fcf..78f3408 100644
--- a/intl/Makefile
+++ b/intl/Makefile
@@ -1,4 +1,4 @@
-# Copyright (C) 1995-1999, 2000 Free Software Foundation, Inc.
+# Copyright (C) 1995-1999, 2000, 2001 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
# The GNU C Library is free software; you can redistribute it and/or
@@ -38,10 +38,14 @@ install-others = $(inst_msgcatdir)/locale.alias
generated = msgs.h mtrace-tst-gettext tst-gettext.mtrace
generated-dirs := domaindir localedir
+include ../Makeconfig
+
+ifneq (no,$(BISON))
plural.c: plural.y
- $(YACC) $(YFLAGS) $@ $^
+ $(BISON) $(BISONFLAGS) $@ $^
+endif
ifeq ($(with-cvs),yes)
- test ! -d CVS || cvs $(CVSOPTS) commit -m'$(YACC) $(YFLAGS) $@ $^' $@
+ test ! -d CVS || cvs $(CVSOPTS) commit -m'$(BISON) $(BISONFLAGS) $@ $^' $@
endif
$(objpfx)plural.o: plural.c
@@ -77,7 +81,7 @@ $(objpfx)tst-translit.out: $(objpfx)tst-gettext.out
CPPFLAGS += -D'GNULOCALEDIR="$(msgcatdir)"' \
-D'LOCALE_ALIAS_PATH="$(msgcatdir)"'
-YFLAGS = --name-prefix=__gettext --output
+BISONFLAGS = --yacc --name-prefix=__gettext --output
$(inst_msgcatdir)/locale.alias: locale.alias $(+force)
$(do-install)