From 54db4deb68be7caedb49b8e949793f770025ce47 Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Thu, 24 Apr 2008 23:48:19 +0000 Subject: For builddir != srcdir builds, remove the files we copy over on make distclean. --- Makefile.am | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 35ccf50..fc11c07 100644 --- a/Makefile.am +++ b/Makefile.am @@ -139,6 +139,12 @@ clean-local: [ ! -f perl/Makefile ] || ( set -e; cd perl && $(MAKE) clean ) cd perl && ( [ ! -f Makefile.old ] || mv Makefile.old Makefile ) +# Remove the files that we copy over if and only if builddir != srcdir. +distclean-local: + set -e; if [ x"$(builddir)" != x"$(srcdir)" ] ; then \ + rm -f $(PERL_FILES) $(TEST_FILES) ; \ + fi + # The bits below are for the test suite, not for the main package. check_PROGRAMS = tests/runtests tests/portable/asprintf-t \ tests/portable/snprintf-t tests/portable/strlcat-t \ -- cgit v1.2.3