]> git.pond.sub.org Git - empserver/commitdiff
Make: Fix distclean for separate build tree
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 9 Jul 2017 09:54:07 +0000 (11:54 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 7 Aug 2017 07:38:32 +0000 (09:38 +0200)
Fix removal of autoconf-generated files in src/client/.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
Make.mk

diff --git a/Make.mk b/Make.mk
index 12534e6f2c0851bb49cde11831a7ea438d6d218a..dce0e7cb7312cbe845760a38c7dfe64face45bc2 100644 (file)
--- 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