Make: Fix "make dist" to remake stale files in $(srcdir)
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 12 Aug 2017 08:13:29 +0000 (10:13 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 12 Aug 2017 08:13:29 +0000 (10:13 +0200)
Broken in commit bb0f3a6.  VPATH claims another victim.

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

diff --git a/Make.mk b/Make.mk
index dce0e7cb7312cbe845760a38c7dfe64face45bc2..e119815810d99405da9f757089ce2a6e5f7bbf6c 100644 (file)
--- a/Make.mk
+++ b/Make.mk
@@ -385,7 +385,7 @@ info.ps: info/TROFF.MAC info/INFO.MAC info/TOP.t $(tsubj) $(tsrc)
 # Distributing
 
 .PHONY: dist-source
-dist-source: $(src_distgen)
+dist-source: $(addprefix $(srcdir)/, $(src_distgen))
        $(tarball) $(TARNAME) $(version) -C $(srcdir) $(src_distgen) $(src)
 
 ifeq ($(revctrl),git)
@@ -395,7 +395,7 @@ $(srcdir)/sources.mk:
 endif
 
 .PHONY: dist-client
-dist-client: $(cli_distgen)
+dist-client: $(addprefix $(srcdir)/, $(cli_distgen))
        $(tarball) $(TARNAME)-client $(version)                         \
        -C $(srcdir)/src/client                                         \
                $(notdir $(filter src/client/%, $(src)) $(cli_distgen)) \