From: John Darrington Date: Sun, 30 Aug 2009 14:16:38 +0000 (+0200) Subject: Fix make distcheck X-Git-Tag: build37~15 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp-builds.git;a=commitdiff_plain;h=99bafccc08919a5d640cb35962c4d730a2cad3a1 Fix make distcheck --- 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 \