From bdb9f4b4ce3ae86219354bd5da37a7ed8fe7ecc1 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Fri, 31 Oct 2014 18:49:15 +0100 Subject: [PATCH] Fix for $(MKDIR) in "make distcheck" without any other target to install --- src/makefile.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/makefile.c b/src/makefile.c index 5ca77b1..5de62ff 100644 --- a/src/makefile.c +++ b/src/makefile.c @@ -397,11 +397,16 @@ static int _variables_executables(Configure * configure, FILE * fp) _makefile_output_variable(fp, "LN", configure->programs.ln); } if(package != NULL) - _makefile_output_variable(fp, "TAR", configure->programs.tar); - if(targets != NULL || includes != NULL) { + _makefile_output_variable(fp, "TAR", configure->programs.tar); _makefile_output_variable(fp, "MKDIR", configure->programs.mkdir); + } + if(targets != NULL || includes != NULL) + { + if(package == NULL) + _makefile_output_variable(fp, "MKDIR", + configure->programs.mkdir); _makefile_output_variable(fp, "INSTALL", configure->programs.install); }