]> granicus.if.org Git - file/commitdiff
make distcheck work.
authorChristos Zoulas <christos@zoulas.com>
Sat, 22 Mar 2008 21:36:18 +0000 (21:36 +0000)
committerChristos Zoulas <christos@zoulas.com>
Sat, 22 Mar 2008 21:36:18 +0000 (21:36 +0000)
tests/Makefile.am

index 2161c99497ffd0747958d65968edce86faa1de05..9b1f5a4aefdee41c898becd3809f1f130cd42b58 100644 (file)
@@ -4,6 +4,7 @@ test_LDADD = $(top_builddir)/src/libmagic.la
 EXTRA_DIST = \
        gedcom.magic gedcom.testfile gedcom.result
 
+T = $(top_srcdir)/tests
 check-local:
        MAGIC=$(top_builddir)/magic/magic ./test
-       for i in *.testfile; do MAGIC=./$${i%%.testfile}.magic ./test ./$$i ./$${i%%.testfile}.result; done
+       for i in $T/*.testfile; do MAGIC=$T/$${i%%.testfile}.magic $(top_builddir)/tests/test $T/$$i $T/$${i%%.testfile}.result; done