mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-12-04 07:48:47 +00:00
Add 'src/ucd-tools/' from commit '3b8016e4f5f415175abb966000c1ebd6f15a4697'
git-subtree-dir: src/ucd-tools git-subtree-mainline:4d3bc36c47git-subtree-split:3b8016e4f5
This commit is contained in:
@@ -0,0 +1,151 @@
|
||||
AUTOMAKE_OPTIONS = subdir-objects
|
||||
|
||||
localedir = $(datadir)/locale
|
||||
xdgdatadir = @XDGDATADIR@
|
||||
mimedir = $(xdgdatadir)/mime
|
||||
xmldir = $(mimedir)/packages
|
||||
|
||||
AM_LDFLAGS = ${LTLIBINTL}
|
||||
AM_CFLAGS = -Isrc/include -Isrc
|
||||
AM_CXXFLAGS = -Isrc/include -Isrc
|
||||
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
|
||||
bin_PROGRAMS =
|
||||
lib_LTLIBRARIES =
|
||||
man1_MANS =
|
||||
pkgdata_DATA =
|
||||
|
||||
noinst_bin_PROGRAMS =
|
||||
noinst_LIBRARIES =
|
||||
|
||||
noinst_bindir =
|
||||
|
||||
EXTRA_DIST = config.rpath ChangeLog
|
||||
CLEANFILES =
|
||||
SUBDIRS =
|
||||
|
||||
############################# libtool #########################################
|
||||
|
||||
EXTRA_DIST += config.guess config.sub ltmain.sh
|
||||
|
||||
# Increment if the interface has changed and is not backward compatible
|
||||
CURRENT=0
|
||||
|
||||
# Increment if source files have changed
|
||||
# Reset to 0 if the interface has changed
|
||||
REVISION=0
|
||||
|
||||
# Increment if the interface is backward compatible (superset)
|
||||
# Reset to 0 if the interface is not backward compatible
|
||||
AGE=0
|
||||
|
||||
LIBUCD_VERSION=$(CURRENT):$(REVISION):$(AGE)
|
||||
|
||||
############################# ChangeLog #######################################
|
||||
|
||||
ChangeLog:
|
||||
git log > ChangeLog
|
||||
|
||||
dist-hook: ChangeLog
|
||||
|
||||
.PHONY: ChangeLog
|
||||
|
||||
EXTRA_DIST += ChangeLog
|
||||
|
||||
############################# Unicode Character Database ######################
|
||||
|
||||
UCD_VERSION=@UCD_VERSION@
|
||||
UCD_ROOTDIR=data/ucd
|
||||
|
||||
data/ucd/PropList.txt:
|
||||
mkdir -pv data/ucd
|
||||
wget -O $@ http://www.unicode.org/Public/${UCD_VERSION}/ucd/PropList.txt
|
||||
|
||||
data/ucd/PropertyValueAliases.txt:
|
||||
mkdir -pv data/ucd
|
||||
wget -O $@ http://www.unicode.org/Public/${UCD_VERSION}/ucd/PropertyValueAliases.txt
|
||||
|
||||
data/ucd/Scripts.txt:
|
||||
mkdir -pv data/ucd
|
||||
wget -O $@ http://www.unicode.org/Public/${UCD_VERSION}/ucd/Scripts.txt
|
||||
|
||||
data/ucd/UnicodeData.txt:
|
||||
mkdir -pv data/ucd
|
||||
wget -O $@ http://www.unicode.org/Public/${UCD_VERSION}/ucd/UnicodeData.txt
|
||||
|
||||
############################# documentation ###################################
|
||||
|
||||
SUFFIXES=.html .md
|
||||
|
||||
.md.html: _layouts/webpage.html
|
||||
cat $< | sed -e 's/\.md)/.html)/g' | \
|
||||
kramdown --template _layouts/webpage.html > $@
|
||||
|
||||
html:
|
||||
doxygen docs/ucd-tools.conf
|
||||
|
||||
docs: html \
|
||||
CHANGELOG.html \
|
||||
README.html
|
||||
|
||||
############################# libucd ##########################################
|
||||
|
||||
tools/ucd.py: data/ucd/PropertyValueAliases.txt
|
||||
|
||||
tools/case.py: tools/ucd.py \
|
||||
data/ucd/UnicodeData.txt
|
||||
|
||||
tools/categories.py: tools/ucd.py \
|
||||
data/ucd/UnicodeData.txt
|
||||
|
||||
tools/scripts.py: tools/ucd.py \
|
||||
data/ucd/Scripts.txt
|
||||
|
||||
ucd-update: tools/case.py tools/categories.py tools/scripts.py
|
||||
tools/case.py ${UCD_ROOTDIR} ${UCD_VERSION} ${UCD_FLAGS} > src/case.c
|
||||
tools/categories.py ${UCD_ROOTDIR} ${UCD_VERSION} ${UCD_FLAGS} > src/categories.c
|
||||
tools/scripts.py ${UCD_ROOTDIR} ${UCD_VERSION} ${UCD_FLAGS} > src/scripts.c
|
||||
|
||||
libucd_includedir = $(includedir)/ucd
|
||||
libucd_include_HEADERS = \
|
||||
src/include/ucd/ucd.h
|
||||
|
||||
lib_LTLIBRARIES += src/libucd.la
|
||||
src_libucd_la_LDFLAGS = -version-info $(LIBUCD_VERSION)
|
||||
src_libucd_la_SOURCES = \
|
||||
src/case.c \
|
||||
src/categories.c \
|
||||
src/ctype.c \
|
||||
src/scripts.c \
|
||||
src/tostring.c
|
||||
|
||||
############################# tests ###########################################
|
||||
|
||||
noinst_bin_PROGRAMS += tests/printucddata
|
||||
tests_printucddata_SOURCES = tests/printucddata.c
|
||||
tests_printucddata_LDADD = src/libucd.la
|
||||
|
||||
noinst_bin_PROGRAMS += tests/printucddata_cpp
|
||||
tests_printucddata_cpp_SOURCES = tests/printucddata_cpp.cpp
|
||||
tests_printucddata_cpp_LDADD = src/libucd.la
|
||||
|
||||
tests/unicode-data.expected: tools/printdata.py tools/ucd.py \
|
||||
data/ucd/UnicodeData.txt \
|
||||
data/ucd/PropList.txt \
|
||||
data/ucd/Scripts.txt
|
||||
tools/printdata.py ${UCD_ROOTDIR} ${UCD_FLAGS} > $@
|
||||
|
||||
tests/unicode-data-capi.actual: tests/printucddata
|
||||
tests/printucddata > $@
|
||||
|
||||
tests/unicode-data-cppapi.actual: tests/printucddata_cpp
|
||||
tests/printucddata_cpp > $@
|
||||
|
||||
tests/unicode-data-capi.diff: tests/unicode-data.expected tests/unicode-data-capi.actual
|
||||
diff -U0 tests/unicode-data.expected tests/unicode-data-capi.actual > tests/unicode-data-capi.diff
|
||||
|
||||
tests/unicode-data-cppapi.diff: tests/unicode-data.expected tests/unicode-data-cppapi.actual
|
||||
diff -U0 tests/unicode-data.expected tests/unicode-data-cppapi.actual > tests/unicode-data-cppapi.diff
|
||||
|
||||
check: tests/unicode-data-capi.diff tests/unicode-data-cppapi.diff
|
||||
Reference in New Issue
Block a user