| 1 |
AUTOMAKE_OPTIONS = subdir-objects |
| 2 |
|
| 3 |
localedir = $(datadir)/locale |
| 4 |
xdgdatadir = @XDGDATADIR@ |
| 5 |
mimedir = $(xdgdatadir)/mime |
| 6 |
xmldir = $(mimedir)/packages |
| 7 |
|
| 8 |
AM_LDFLAGS = ${LTLIBINTL} |
| 9 |
AM_CFLAGS = -Isrc/include -Isrc |
| 10 |
AM_CXXFLAGS = -Isrc/include -Isrc |
| 11 |
|
| 12 |
ACLOCAL_AMFLAGS = -I m4 |
| 13 |
|
| 14 |
bin_PROGRAMS = |
| 15 |
lib_LTLIBRARIES = |
| 16 |
man1_MANS = |
| 17 |
pkgdata_DATA = |
| 18 |
|
| 19 |
noinst_bin_PROGRAMS = |
| 20 |
noinst_LIBRARIES = |
| 21 |
|
| 22 |
noinst_bindir = |
| 23 |
|
| 24 |
EXTRA_DIST = config.rpath ChangeLog |
| 25 |
CLEANFILES = |
| 26 |
SUBDIRS = |
| 27 |
|
| 28 |
############################# libtool ######################################### |
| 29 |
|
| 30 |
EXTRA_DIST += config.guess config.sub ltmain.sh |
| 31 |
|
| 32 |
# Increment if the interface has changed and is not backward compatible |
| 33 |
CURRENT=0 |
| 34 |
|
| 35 |
# Increment if source files have changed |
| 36 |
# Reset to 0 if the interface has changed |
| 37 |
REVISION=0 |
| 38 |
|
| 39 |
# Increment if the interface is backward compatible (superset) |
| 40 |
# Reset to 0 if the interface is not backward compatible |
| 41 |
AGE=0 |
| 42 |
|
| 43 |
LIBUCD_VERSION=$(CURRENT):$(REVISION):$(AGE) |
| 44 |
|
| 45 |
############################# ChangeLog ####################################### |
| 46 |
|
| 47 |
ChangeLog: |
| 48 |
git log > ChangeLog |
| 49 |
|
| 50 |
dist-hook: ChangeLog |
| 51 |
|
| 52 |
.PHONY: ChangeLog |
| 53 |
|
| 54 |
EXTRA_DIST += ChangeLog |
| 55 |
|
| 56 |
############################# Unicode Data #################################### |
| 57 |
|
| 58 |
EMOJI_VERSION=@EMOJI_VERSION@ |
| 59 |
UCD_VERSION=@UCD_VERSION@ |
| 60 |
UCD_ROOTDIR=data/ucd |
| 61 |
UCD_SRCDIR=http://www.unicode.org/Public |
| 62 |
|
| 63 |
data/emoji/emoji-data.txt: |
| 64 |
mkdir -pv data/emoji |
| 65 |
curl ${UCD_SRCDIR}/emoji/${EMOJI_VERSION}/emoji-data.txt -o $@ |
| 66 |
|
| 67 |
data/ucd/PropList.txt: |
| 68 |
mkdir -pv data/ucd |
| 69 |
curl ${UCD_SRCDIR}/${UCD_VERSION}/ucd/PropList.txt -o $@ |
| 70 |
|
| 71 |
data/ucd/DerivedCoreProperties.txt: |
| 72 |
mkdir -pv data/ucd |
| 73 |
curl ${UCD_SRCDIR}/${UCD_VERSION}/ucd/DerivedCoreProperties.txt -o $@ |
| 74 |
|
| 75 |
data/ucd/PropertyValueAliases.txt: |
| 76 |
mkdir -pv data/ucd |
| 77 |
curl ${UCD_SRCDIR}/${UCD_VERSION}/ucd/PropertyValueAliases.txt -o $@ |
| 78 |
|
| 79 |
data/ucd/Scripts.txt: |
| 80 |
mkdir -pv data/ucd |
| 81 |
curl ${UCD_SRCDIR}/${UCD_VERSION}/ucd/Scripts.txt -o $@ |
| 82 |
|
| 83 |
data/ucd/UnicodeData.txt: |
| 84 |
mkdir -pv data/ucd |
| 85 |
curl ${UCD_SRCDIR}/${UCD_VERSION}/ucd/UnicodeData.txt -o $@ |
| 86 |
|
| 87 |
############################# documentation ################################### |
| 88 |
|
| 89 |
SUFFIXES=.html .md |
| 90 |
|
| 91 |
.md.html: _layouts/webpage.html |
| 92 |
cat $< | sed -e 's/\.md)/.html)/g' | \ |
| 93 |
kramdown --template _layouts/webpage.html > $@ |
| 94 |
|
| 95 |
html: |
| 96 |
doxygen docs/ucd-tools.conf |
| 97 |
|
| 98 |
docs: html \ |
| 99 |
ChangeLog.html \ |
| 100 |
README.html |
| 101 |
|
| 102 |
############################# libucd ########################################## |
| 103 |
|
| 104 |
tools/ucd.py: data/ucd/PropertyValueAliases.txt |
| 105 |
|
| 106 |
tools/case.py: tools/ucd.py \ |
| 107 |
data/ucd/UnicodeData.txt |
| 108 |
|
| 109 |
tools/categories.py: tools/ucd.py \ |
| 110 |
data/ucd/UnicodeData.txt |
| 111 |
|
| 112 |
tools/scripts.py: tools/ucd.py \ |
| 113 |
data/ucd/Scripts.txt |
| 114 |
|
| 115 |
ucd-update: tools/case.py tools/categories.py tools/scripts.py |
| 116 |
tools/case.py ${UCD_ROOTDIR} ${UCD_VERSION} ${UCD_FLAGS} > src/case.c |
| 117 |
tools/categories.py ${UCD_ROOTDIR} ${UCD_VERSION} ${UCD_FLAGS} > src/categories.c |
| 118 |
tools/scripts.py ${UCD_ROOTDIR} ${UCD_VERSION} ${UCD_FLAGS} > src/scripts.c |
| 119 |
|
| 120 |
libucd_includedir = $(includedir)/ucd |
| 121 |
libucd_include_HEADERS = \ |
| 122 |
src/include/ucd/ucd.h |
| 123 |
|
| 124 |
lib_LTLIBRARIES += src/libucd.la |
| 125 |
src_libucd_la_LDFLAGS = -version-info $(LIBUCD_VERSION) |
| 126 |
src_libucd_la_SOURCES = \ |
| 127 |
src/case.c \ |
| 128 |
src/categories.c \ |
| 129 |
src/ctype.c \ |
| 130 |
src/proplist.c \ |
| 131 |
src/scripts.c \ |
| 132 |
src/tostring.c |
| 133 |
|
| 134 |
############################# tests ########################################### |
| 135 |
|
| 136 |
noinst_bin_PROGRAMS += tests/printcdata |
| 137 |
tests_printcdata_SOURCES = tests/printcdata.c |
| 138 |
tests_printcdata_LDADD = src/libucd.la |
| 139 |
|
| 140 |
noinst_bin_PROGRAMS += tests/printucddata |
| 141 |
tests_printucddata_SOURCES = tests/printucddata.c |
| 142 |
tests_printucddata_LDADD = src/libucd.la |
| 143 |
|
| 144 |
noinst_bin_PROGRAMS += tests/printucddata_cpp |
| 145 |
tests_printucddata_cpp_SOURCES = tests/printucddata_cpp.cpp |
| 146 |
tests_printucddata_cpp_LDADD = src/libucd.la |
| 147 |
|
| 148 |
tests/unicode-data.expected: tools/printdata.py tools/ucd.py \ |
| 149 |
data/emoji/emoji-data.txt \ |
| 150 |
data/espeak-ng/PropList.txt \ |
| 151 |
data/ucd/UnicodeData.txt \ |
| 152 |
data/ucd/PropList.txt \ |
| 153 |
data/ucd/DerivedCoreProperties.txt \ |
| 154 |
data/ucd/Scripts.txt |
| 155 |
tools/printdata.py ${UCD_ROOTDIR} ${UCD_FLAGS} > $@ |
| 156 |
|
| 157 |
tests/unicode-data-capi.actual: tests/printucddata |
| 158 |
tests/printucddata > $@ |
| 159 |
|
| 160 |
tests/unicode-data-cppapi.actual: tests/printucddata_cpp |
| 161 |
tests/printucddata_cpp > $@ |
| 162 |
|
| 163 |
tests/unicode-data-capi.diff: tests/unicode-data.expected tests/unicode-data-capi.actual |
| 164 |
diff -U0 tests/unicode-data.expected tests/unicode-data-capi.actual > tests/unicode-data-capi.diff |
| 165 |
|
| 166 |
tests/unicode-data-cppapi.diff: tests/unicode-data.expected tests/unicode-data-cppapi.actual |
| 167 |
diff -U0 tests/unicode-data.expected tests/unicode-data-cppapi.actual > tests/unicode-data-cppapi.diff |
| 168 |
|
| 169 |
check: tests/unicode-data-capi.diff tests/unicode-data-cppapi.diff |