summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-10-25 23:27:46 +0000
committerTavian Barnes <tavianator@gmail.com>2009-10-25 23:27:46 +0000
commitfa8953f38f0f4b1a2ee3d0704c68750c38e5ec5f (patch)
tree96d8520b91e348e2d92b8cf3234863d67e6c3130 /tests
parent5391e7cc0830a9a574fcb24ce86e4b2f37eef1eb (diff)
downloaddimension-fa8953f38f0f4b1a2ee3d0704c68750c38e5ec5f.tar.xz
Fix make distcheck.
Tests and benchmarks were using $(top_srcdir) instead of $(top_builddir) to refer to libraries, and PNG files were not being cleaned.
Diffstat (limited to 'tests')
-rw-r--r--tests/libdimension/Makefile.am7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/libdimension/Makefile.am b/tests/libdimension/Makefile.am
index 07a4b8d..fe19ad4 100644
--- a/tests/libdimension/Makefile.am
+++ b/tests/libdimension/Makefile.am
@@ -28,8 +28,11 @@ check_PROGRAMS = error-test \
TESTS = $(check_PROGRAMS)
XFAIL_TESTS = error-test
+.PHONY: clean-local-png-test
+clean-local: clean-local-png-test
+
libdimension_tests_la_SOURCES = tests.c tests.h
-libdimension_tests_la_LIBADD = $(top_srcdir)/libdimension/libdimension.la
+libdimension_tests_la_LIBADD = $(top_builddir)/libdimension/libdimension.la
error_test_SOURCES = error.c
error_test_LDADD = libdimension-tests.la
@@ -42,6 +45,8 @@ kD_splay_tree_test_LDADD = libdimension-tests.la
png_test_SOURCES = png.c
png_test_LDADD = libdimension-tests.la
+clean-local-png-test:
+ rm -f *.png
gl_test_SOURCES = gl.c
gl_test_LDADD = libdimension-tests.la