From c2f10ca5a30401c2bc4a5b67459b06e4a4184da7 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sat, 15 Nov 2014 14:49:20 +0100 Subject: [PATCH] Create archives from "make dist" in OBJDIR This still requires creating a symbolic link in the sources directory though. --- src/makefile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/makefile.c b/src/makefile.c index 2331034..69260c1 100644 --- a/src/makefile.c +++ b/src/makefile.c @@ -1735,7 +1735,8 @@ static int _write_dist(Configure * configure, FILE * fp, configArray * ca, _makefile_target(fp, "dist", NULL); _makefile_remove(fp, 1, "$(PACKAGE)-$(VERSION)", NULL); _makefile_link(fp, 1, ".", "$(PACKAGE)-$(VERSION)"); - fputs("\t@$(TAR) -czvf $(PACKAGE)-$(VERSION).tar.gz -- \\\n", fp); + fputs("\t@$(TAR) -czvf $(OBJDIR)$(PACKAGE)-$(VERSION).tar.gz -- \\\n", + fp); for(i = from + 1; i < to; i++) { array_get_copy(ca, i, &p);