From 231947e41a69c1f2ce0513019a1732a7a46f382c Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sun, 9 Mar 2008 18:19:07 +0100 Subject: [PATCH] Fix make distclean to remove generated sources.mk --- Make.mk | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Make.mk b/Make.mk index f265f4078..97e44e5d8 100644 --- a/Make.mk +++ b/Make.mk @@ -88,7 +88,14 @@ subst.in = sed \ # Generated files # See `Cleanliness' below -# sources.mk subjects.mk +mk := subjects.mk +ifeq ($(revctrl),git) +mk += sources.mk +else +ifneq ($(srcdir),.) +mk += sources.mk +endif +endif # Generated by Autoconf, not distributed: ac := config.h config.log config.status info.html info.nr lib stamp-h ac += $(basename $(filter %.in, $(src))) @@ -138,7 +145,7 @@ endif clean := $(obj) $(deps) $(libs) $(util) $(client) $(server) $(tsubj) \ $(ttop) $(info.nr) $(info.html) $(empth_obj) $(empth_lib) # Removed by distclean: -distclean := $(ac) subjects.mk +distclean := $(ac) $(mk) # Distributed by dist-source from $(srcdir) src_distgen := $(acdist) # Distributed by dist-source from . @@ -323,7 +330,8 @@ info.ps: info/TROFF.MAC info/INFO.MAC $(ttop) $(tsubj) $(tsrc) # Note: $(srcdir)/sources.mk is only used when the source tree came # from a tarball rather than git. The following rules create a -# sources.mk to put into the tarball. It is not used in this build. +# sources.mk to put into the tarball. It is not used otherwise in +# this build. ifeq ($(revctrl),git) sources.mk: -- 2.43.0