From 0d3d976fe45b430120ce0cac9aa5c422cc117b00 Mon Sep 17 00:00:00 2001 From: Patrick McCarty Date: Sun, 3 Jan 2021 21:43:36 +0000 Subject: [PATCH] distclean: more closely follow automake's guidelines According to the documentation, `distclean` should delete files that `configure` built. Since many of the files we have been declaring for `distclean-local` are generated by `autoreconf`, avoid deleting several of those files. Also, note that the `autom4te.cache` directory is deleted by `maintainer-clean` already. Most of the others are required for a clean `configure` run. To restore the tree to a pristine state, use `git clean -xffd`. Signed-off-by: Patrick McCarty --- Makefile.am | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index f402b3f..71b0c71 100644 --- a/Makefile.am +++ b/Makefile.am @@ -98,7 +98,10 @@ libbsdiff_la_LDFLAGS = \ -Wl,--version-script=$(top_srcdir)/src/bsdiff.sym distclean-local: - rm -rf aclocal.m4 ar-lib autom4te.cache config.guess config.h.in config.h.in~ config.sub configure depcomp install-sh ltmain.sh m4 Makefile.in missing compile + -rm -f config.guess~ + -rm -f config.h.in~ + -rm -f config.sub~ + -rm -f configure~ install-exec-hook: perl $(top_srcdir)/findstatic.pl $(top_builddir)/src/*.o | grep -v Checking || :