Hash :
dd629467
Author :
Date :
2024-08-10T12:48:55
Make sure gperf-generated files are the same in VPATH builds. Reported by Patrice Dumas <pertusus@free.fr> in <https://lists.gnu.org/archive/html/bug-texinfo/2024-08/msg00030.html>. * modules/iconv_open (Makefile.am): Eliminate directory names from the generated iconv_open-aix.h, iconv_open-hpux.h, iconv_open-irix.h, iconv_open-osf.h, iconv_open-solaris.h, iconv_open-zos.h. * modules/unicase/locale-language (Makefile.am): Eliminate directory names from the generated unicase/locale-languages.h. * modules/unicase/special-casing (Makefile.am): Eliminate directory names from the generated unicase/special-casing-table.h. * modules/unictype/bidiclass-byname (Makefile.am): Eliminate directory names from the generated unictype/bidi_byname.h. * modules/unictype/category-byname (Makefile.am): Eliminate directory names from the generated unictype/categ_byname.h. * modules/unictype/combining-class-byname (Makefile.am): Eliminate directory names from the generated unictype/combiningclass_byname.h. * modules/unictype/incb-byname (Makefile.am): Eliminate directory names from the generated unictype/incb_byname.h. * modules/unictype/joininggroup-byname (Makefile.am): Eliminate directory names from the generated unictype/joininggroup_byname.h. * modules/unictype/joiningtype-byname (Makefile.am): Eliminate directory names from the generated unictype/joiningtype_byname.h. * modules/unictype/property-byname (Makefile.am): Eliminate directory names from the generated unictype/pr_byname.h. * modules/unictype/scripts (Makefile.am): Eliminate directory names from the generated unictype/scripts_byname.h. * modules/uninorm/composition (Makefile.am): Eliminate directory names from the generated uninorm/composition-table.h.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
Description:
Special casing table.
Files:
lib/unicase/special-casing.in.h
lib/unicase/special-casing.c
lib/unicase/special-casing-table.gperf
Depends-on:
gen-header
gperf
configure.ac:
AC_PROG_MKDIR_P
Makefile.am:
lib_SOURCES += unicase/special-casing.c
$(srcdir)/unicase/special-casing-table.h: $(srcdir)/unicase/special-casing-table.gperf
$(V_GPERF)$(GPERF) -m 10 $(srcdir)/unicase/special-casing-table.gperf > $(srcdir)/unicase/special-casing-table.h-t1 \
&& sed -e 's|\([ "]\)[^ "]*/unicase/special-casing-table\.gperf\([ "]\)|\1unicase/special-casing-table.gperf\2|' \
< $(srcdir)/unicase/special-casing-table.h-t1 > $(srcdir)/unicase/special-casing-table.h-t2 \
&& rm -f $(srcdir)/unicase/special-casing-table.h-t1 \
&& mv $(srcdir)/unicase/special-casing-table.h-t2 $(srcdir)/unicase/special-casing-table.h
BUILT_SOURCES += unicase/special-casing-table.h
MOSTLYCLEANFILES += unicase/special-casing-table.h-t1 unicase/special-casing-table.h-t2
MAINTAINERCLEANFILES += unicase/special-casing-table.h
EXTRA_DIST += unicase/special-casing-table.h
# Generate special-casing.h with a declaration that depends on the gperf version.
unicase/special-casing.h: unicase/special-casing.in.h unicase/special-casing-table.h
$(AM_V_GEN)$(MKDIR_P) '%reldir%/unicase'
$(AM_V_at)declaration=`grep '^gl_unicase_special_lookup' $(srcdir)/unicase/special-casing-table.h | sed -e 's/register //g'` && \
$(SED_HEADER_STDOUT) \
-e "/gl_unicase_special_lookup/s/gl_unicase_special_lookup.*/$${declaration};/" \
$(srcdir)/unicase/special-casing.in.h > $@-t
$(AM_V_at)mv $@-t $@
BUILT_SOURCES += unicase/special-casing.h
MOSTLYCLEANFILES += unicase/special-casing.h unicase/special-casing.h-t
Include:
"unicase/special-casing.h"
License:
LGPLv3+ or GPLv2+
Maintainer:
all