diff --git a/src/Makefile.am b/src/Makefile.am index b30b81e..d379de6 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -50,20 +50,7 @@ distclean-local: rm -f LineBreak.txt WordBreakData.txt GraphemeBreakData.txt emoji-data.txt LineBreakTest.txt WordBreakTest.txt GraphemeBreakTest.txt -LineBreak.txt: - wget http://unicode.org/Public/UNIDATA/LineBreak.txt - -WordBreakProperty.txt: - wget http://www.unicode.org/Public/UNIDATA/auxiliary/WordBreakProperty.txt - -GraphemeBreakProperty.txt: - wget http://www.unicode.org/Public/UNIDATA/auxiliary/GraphemeBreakProperty.txt - -emoji-data.txt: - wget https://www.unicode.org/Public/UNIDATA/emoji/emoji-data.txt - - -linebreakdata: LineBreak.txt +linebreakdata: sed -E -n -f ${srcdir}/extract_data.sed LineBreak.txt | \ sed -E -f ${srcdir}/expand_single.sed | \ ${srcdir}/generate_linebreakdata.py > tmp.c @@ -71,7 +58,7 @@ linebreakdata: LineBreak.txt cat ${srcdir}/linebreakdata1.tmpl tmp.txt tmp.c > ${srcdir}/linebreakdata.c rm tmp.txt tmp.c -wordbreakdata: WordBreakProperty.txt +wordbreakdata: sed -E -n -f ${srcdir}/extract_data.sed WordBreakProperty.txt | \ sed -E -f ${srcdir}/expand_single.sed | \ ${srcdir}/sort_numeric_hex.py | \ @@ -82,7 +69,7 @@ wordbreakdata: WordBreakProperty.txt cat ${srcdir}/wordbreakdata1.tmpl tmp.txt ${srcdir}/wordbreakdata2.tmpl >> ${srcdir}/wordbreakdata.c rm tmp.txt -graphemebreakdata: GraphemeBreakProperty.txt +graphemebreakdata: sed -E -n -f ${srcdir}/extract_data.sed GraphemeBreakProperty.txt | \ sed -E -f ${srcdir}/expand_single.sed | \ ${srcdir}/sort_numeric_hex.py | \ @@ -93,7 +80,7 @@ graphemebreakdata: GraphemeBreakProperty.txt cat ${srcdir}/graphemebreakdata1.tmpl tmp.txt ${srcdir}/graphemebreakdata2.tmpl >> ${srcdir}/graphemebreakdata.c rm tmp.txt -emojidata: emoji-data.txt +emojidata: echo "/* The content of this file is generated from:" > ${srcdir}/emojidata.c head -2 emoji-data.txt >> ${srcdir}/emojidata.c echo "*/" >> ${srcdir}/emojidata.c @@ -115,16 +102,8 @@ tests_CPPFLAGS = -I$(srcdir) tests_LDADD = libunibreak.la tests_DEPENDENCIES = libunibreak.la -check: LineBreakTest.txt WordBreakTest.txt GraphemeBreakTest.txt $(check_PROGRAMS) +check: $(check_PROGRAMS) ./tests line ./tests word ./tests grapheme -LineBreakTest.txt: - wget http://www.unicode.org/Public/UNIDATA/auxiliary/LineBreakTest.txt - -WordBreakTest.txt: - wget http://www.unicode.org/Public/UNIDATA/auxiliary/WordBreakTest.txt - -GraphemeBreakTest.txt: - wget http://www.unicode.org/Public/UNIDATA/auxiliary/GraphemeBreakTest.txt