1check_PROGRAMS = test 2test_LDADD = $(top_builddir)/src/libmagic.la 3test_CPPFLAGS = -I$(top_builddir)/src 4 5EXTRA_DIST = \ 6 gedcom.magic gedcom.testfile gedcom.result 7 8T = $(top_srcdir)/tests 9check-local: 10 MAGIC=$(top_builddir)/magic/magic ./test 11 for i in $T/*.testfile; do MAGIC=$T/$${i%%.testfile}.magic $(top_builddir)/tests/test $T/$$i $T/$${i%%.testfile}.result; done 12