From 2231e997ff52140c9cf16c710ae2b2082fc70b91 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 13 Apr 2006 13:01:57 -0700 Subject: Fix 'make distcheck' problems with new unittest code, and a small portability problem. BitKeeper/etc/ignore: Use a wildcard to ignore all unittest *.t files unittest/Makefile.am: Add unit to DISTCLEANFILES, and make sure to copy it from srcdir unittest/examples/Makefile.am: Use srcdir to find mytap header unittest/mysys/Makefile.am: Use srcdir to find mytap header unittest/mytap/t/Makefile.am: Use builddir for finding mytap library unittest/mytap/tap.c: Fix portability problem (declarations after code in C code) --- unittest/Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'unittest/Makefile.am') diff --git a/unittest/Makefile.am b/unittest/Makefile.am index 8943e58170d..f6dfb41e4e1 100644 --- a/unittest/Makefile.am +++ b/unittest/Makefile.am @@ -2,6 +2,8 @@ SUBDIRS = mytap . mysys examples noinst_SCRIPTS = unit +DISTCLEANFILES = unit + unittests = mysys examples .PHONY: all mytap mysys examples test @@ -18,6 +20,6 @@ mysys: examples: cd examples && $(MAKE) -unit: unit.pl +unit: $(srcdir)/unit.pl cp $< $@ chmod +x $@ -- cgit v1.2.1