Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit 0d3d976

Browse files
committed
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 <patrick.mccarty@intel.com>
1 parent f192356 commit 0d3d976

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile.am

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,10 @@ libbsdiff_la_LDFLAGS = \
9898
-Wl,--version-script=$(top_srcdir)/src/bsdiff.sym
9999

100100
distclean-local:
101-
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
101+
-rm -f config.guess~
102+
-rm -f config.h.in~
103+
-rm -f config.sub~
104+
-rm -f configure~
102105

103106
install-exec-hook:
104107
perl $(top_srcdir)/findstatic.pl $(top_builddir)/src/*.o | grep -v Checking || :

0 commit comments

Comments
 (0)