From 3872604ce02b4d8c95da3f891012fa713b016d59 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sun, 9 Jul 2017 11:54:07 +0200 Subject: [PATCH 1/1] Make: Fix distclean for separate build tree Fix removal of autoconf-generated files in src/client/. Signed-off-by: Markus Armbruster --- Make.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Make.mk b/Make.mk index 12534e6f2..dce0e7cb7 100644 --- a/Make.mk +++ b/Make.mk @@ -27,7 +27,7 @@ # Make.mk: The real Makefile, included by GNUmakefile # # Known contributors to this file: -# Markus Armbruster, 2005-2016 +# Markus Armbruster, 2005-2017 # # This makefile was inspired by `Recursive Make Considered Harmful', @@ -168,6 +168,7 @@ endif src_distgen := $(acdist) $(mk) # Distributed by dist-client from $(srcdir)/src/client; removed by distclean: cli_distgen := $(acdistcli) +distclean += $(addprefix $(srcdir)/, $(cli_distgen)) # Compiler flags CPPFLAGS += -I$(srcdir)/include -I. @@ -193,7 +194,7 @@ clean: .PHONY: distclean distclean: clean - $(call quiet-command,rm -rf $(distclean) $(cli_distgen),DISTCLEAN) + $(call quiet-command,rm -rf $(distclean),DISTCLEAN) .PHONY: install install: all installdirs -- 2.43.0