From 99bafccc08919a5d640cb35962c4d730a2cad3a1 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sun, 30 Aug 2009 16:16:38 +0200 Subject: [PATCH] Fix make distcheck --- Makefile.am | 4 ++-- perl-module/automake.mk | 4 +++- tests/automake.mk | 10 +++++++++- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/Makefile.am b/Makefile.am index f606cbf1..f87d56c1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -30,6 +30,7 @@ pkgsysconfdir = $(sysconfdir)/@PACKAGE@ EXTRA_DIST = OChangeLog ONEWS config.rpath pspp-mode.el CLEANFILES = +CLEAN_LOCAL = ACLOCAL_AMFLAGS = -I m4 -I gl/m4 noinst_LIBRARIES= noinst_LTLIBRARIES= @@ -78,5 +79,4 @@ install-data-hook: $(INSTALL_DATA_HOOKS) uninstall-hook: $(UNINSTALL_DATA_HOOKS) - - +clean-local: $(CLEAN_LOCAL) diff --git a/perl-module/automake.mk b/perl-module/automake.mk index 9527dbbd..44501120 100644 --- a/perl-module/automake.mk +++ b/perl-module/automake.mk @@ -54,13 +54,15 @@ check-local: LANG=C LD_LIBRARY_PATH=$$llp sh -c "cd perl-module && $(MAKE) $(AM_MAKEFLAGS) test" -clean-local: +perl_module_CLEAN: cd perl-module && $(MAKE) $(AM_MAKEFLAGS) clean || true if test x"$(top_builddir)" != x"$(top_srcdir)" ; then \ $(RM) $(module_sources) ; \ fi $(RM) perl-module/Makefile.old +CLEAN_LOCAL += perl_module_CLEAN + CLEANFILES += \ perl-module/PSPP-Perl-$(VERSION).tar.gz \ perl-module/pspp-module-config \ diff --git a/tests/automake.mk b/tests/automake.mk index 15e297a0..9d76bc99 100644 --- a/tests/automake.mk +++ b/tests/automake.mk @@ -205,7 +205,15 @@ check_PROGRAMS += \ tests_data_datasheet_test_SOURCES = \ tests/data/datasheet-test.c -tests_data_datasheet_test_LDADD = src/libpspp-core.la @LIBINTL@ +tests_data_datasheet_test_LDADD = gl/libgl.la src/libpspp-core.la @LIBINTL@ +tests_data_datasheet_test_CFLAGS = $(AM_CFLAGS) + +# This seems to be necessary as the libtool artifacts aren't removed +# Automake bug ? +tests_data_datasheet_test_CLEAN: + $(RM) -r tests/data + +CLEAN_LOCAL += tests_data_datasheet_test_CLEAN tests_libpspp_ll_test_SOURCES = \ src/libpspp/ll.c \ -- 2.30.2