From 75d18375e7351d8295181d2bf1e2dce57b1498b2 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sun, 5 Feb 2023 13:23:57 -0800 Subject: [PATCH] Makefile.in: don't remove configure and config.h.in in make distclean. In the GNU makefile standards, "make distclean" removes everything that's not part of the source distribution; this does *not* include the configure script or the config.h.in file, as those are in the release tarball, so that building from a source tarball doesn't require having autoconf. This allows somebody building from the source tarball to do a "make distclean" and then reconfigure. Do, however, remove any release tarball in make distclean, by having distclean depend on clean. --- Makefile.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile.in b/Makefile.in index 22d3a40d..615e09d4 100644 --- a/Makefile.in +++ b/Makefile.in @@ -453,9 +453,9 @@ lint: clean: rm -f $(CLEANFILES) $(PROG)-`cat ${srcdir}/VERSION`.tar.gz -distclean: - rm -f $(CLEANFILES) Makefile config.cache config.log config.status \ - config.h config.h.in config.h.in~ configure configure~ configure.ac~ \ +distclean: clean + rm -f Makefile config.cache config.log config.status \ + config.h config.h.in~ configure~ configure.ac~ \ os-proto.h stamp-h stamp-h.in $(PROG).1 \ libnetdissect.a tests/.failed tests/.passed \ tests/failure-outputs.txt -- 2.39.5