1# Process this file with automake to produce Makefile.in
2
3NULL =
4
5# Convenience targets:
6lib:
7	@$(MAKE) $(AM_MAKEFLAGS) -C $(top_builddir)/src lib
8
9EXTRA_DIST = \
10	COPYING \
11	fonts \
12	$(TESTS) \
13	$(NULL)
14
15TEST_EXTENSIONS = .tests
16TESTS_LOG_COMPILER = $(srcdir)/../../run-tests.py $(top_builddir)/util/hb-shape$(EXEEXT)
17
18init-aots:
19	git clone https://github.com/adobe-type-tools/aots $(srcdir)/aots
20	make -C$(srcdir)/aots
21	make -C$(srcdir)/aots/harfbuzz
22	touch $(srcdir)/init-aots
23
24update-tests: init-aots lib
25	cp $(srcdir)/hb-aots-tester.cpp $(srcdir)/aots/harfbuzz/hb-aots-tester.cpp
26	$(CXX) -Wno-narrowing $(srcdir)/aots/harfbuzz/hb-aots-tester.cpp \
27		-I$(top_srcdir)/src/ -o $(srcdir)/aots/harfbuzz/aots \
28		-L$(top_builddir)/src/.libs -lharfbuzz
29	rm -rf $(srcdir)/tests/
30	mkdir $(srcdir)/tests/
31	export LD_LIBRARY_PATH=$(realpath $(top_builddir)/src/.libs); cd $(srcdir)/aots/harfbuzz; ./aots
32
33.PHONY: update-tests
34
35include Makefile.sources
36
37-include $(top_srcdir)/git.mk
38