]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
build: Make bison rules more reliable.
authorBruno Haible <bruno@clisp.org>
Fri, 26 May 2023 23:46:03 +0000 (01:46 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 26 May 2023 23:46:03 +0000 (01:46 +0200)
* gettext-runtime/intl/Makefile.am ($(srcdir)/plural.c): Fix sed expressions.
* gettext-tools/src/Makefile.am (po-gram-gen.c, cldr-plural.c): Likewise.

gettext-runtime/intl/Makefile.am
gettext-tools/src/Makefile.am

index 1eff31b45489f877aff93b7e8cb8401eb51c99d1..110ede8c61e308258940c8aff1fb415e0a889d24 100644 (file)
@@ -269,11 +269,11 @@ MOSTLYCLEANFILES += libintl.h
 $(srcdir)/plural.c: $(srcdir)/plural.y
        $(AM_V_YACC)$(BISON) -d $(BISONFLAGS) $(srcdir)/plural.y \
        && test ':' = '$(BISON)' || { \
-         sed -e 's|".*/plural.y"|"plural.y"|' \
+         sed -e 's|".*/plural\.y"|"plural.y"|' \
              -e 's|"plural\.tab\.c"|"plural.c"|' \
              -e 's|"plural\.tab\.h"|"plural.h"|' \
              < plural.tab.c > plural.c-tmp \
-         && sed -e 's|".*/plural.y"|"plural.y"|' \
+         && sed -e 's|".*/plural\.y"|"plural.y"|' \
                 -e 's|"plural\.tab\.h"|"plural.h"|' \
                 < plural.tab.h > plural.h-tmp \
          && rm -f plural.tab.c plural.tab.h \
index 0d6979fe241f63968886c622278ee9ee7b659b7a..ad495ec96f62567cda3c2c3616b9e1437a3276d1 100644 (file)
@@ -568,11 +568,11 @@ endif
 po-gram-gen.c po-gram-gen.h: po-gram-gen.y
        $(AM_V_YACC)$(BISON) -d $(YFLAGS) $(AM_YFLAGS) $(srcdir)/po-gram-gen.y \
        && test ':' = '$(BISON)' || { \
-         sed -e 's|".*/po-gram-gen.y"|"po-gram-gen.y"|' \
+         sed -e 's|".*/po-gram-gen\.y"|"po-gram-gen.y"|' \
              -e 's|"po-gram-gen\.tab\.c"|"po-gram-gen.c"|' \
              -e 's|"po-gram-gen\.tab\.h"|"po-gram-gen.h"|' \
              < po-gram-gen.tab.c > po-gram-gen.c-tmp \
-         && sed -e 's|".*/po-gram-gen.y"|"po-gram-gen.y"|' \
+         && sed -e 's|".*/po-gram-gen\.y"|"po-gram-gen.y"|' \
                 -e 's|"po-gram-gen\.tab\.h"|"po-gram-gen.h"|' \
                 < po-gram-gen.tab.h > po-gram-gen.h-tmp \
          && rm -f po-gram-gen.tab.c po-gram-gen.tab.h \
@@ -602,11 +602,11 @@ po-lex.o po-lex.lo: po-gram-gen2.h
 cldr-plural.c cldr-plural.h: cldr-plural.y
        $(AM_V_YACC)$(BISON) -d $(YFLAGS) $(AM_YFLAGS) $(srcdir)/cldr-plural.y \
        && test ':' = '$(BISON)' || { \
-         sed -e 's|".*/cldr-plural.y"|"cldr-plural.y"|' \
+         sed -e 's|".*/cldr-plural\.y"|"cldr-plural.y"|' \
              -e 's|"cldr-plural\.tab\.c"|"cldr-plural.c"|' \
              -e 's|"cldr-plural\.tab\.h"|"cldr-plural.h"|' \
              < cldr-plural.tab.c > cldr-plural.c-tmp \
-         && sed -e 's|".*/cldr-plural.y"|"cldr-plural.y"|' \
+         && sed -e 's|".*/cldr-plural\.y"|"cldr-plural.y"|' \
                 -e 's|"cldr-plural\.tab\.h"|"cldr-plural.h"|' \
                 < cldr-plural.tab.h > cldr-plural.h-tmp \
          && rm -f cldr-plural.tab.c cldr-plural.tab.h \