@ -19,8 +19,8 @@ LIBS += $(PTHREAD_LIBS)
all :
all :
update-unicode : unicode_norm_table .h unicode_combining_table .h unicode_normprops_table .h
update-unicode : unicode_norm_table .h unicode_combining_table .h unicode_normprops_table .h
$( MAKE) normalization-check
mv $^ ../../../src/include/common/
mv $^ ../../../src/include/common/
$( MAKE) normalization-check
# These files are part of the Unicode Character Database. Download
# These files are part of the Unicode Character Database. Download
# them on demand. The dependency on Makefile.global is for
# them on demand. The dependency on Makefile.global is for
@ -43,10 +43,15 @@ unicode_normprops_table.h: generate-unicode_normprops_table.pl DerivedNormalizat
normalization-check : norm_test
normalization-check : norm_test
./norm_test
./norm_test
norm_test : norm_test .o ../unicode_norm .o
norm_test : norm_test .o ../unicode_norm .o | submake -common
norm_test.o : norm_test_table .h
norm_test.o : norm_test_table .h
.PHONY : submake -common
submake-common :
$( MAKE) -C .. all
norm_test_table.h : generate -norm_test_table .pl NormalizationTest .txt
norm_test_table.h : generate -norm_test_table .pl NormalizationTest .txt
perl generate-norm_test_table.pl NormalizationTest.txt $@
perl generate-norm_test_table.pl NormalizationTest.txt $@