From 0088809b6a9b468081bdf203220dfc7a9cfc0bed Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sat, 26 Aug 2006 16:39:49 +0000 Subject: [PATCH] Forgot to declare "RM" in some cases for the "dist" target --- src/makefile.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/makefile.c b/src/makefile.c index 1e84f6d..6c7fb56 100644 --- a/src/makefile.c +++ b/src/makefile.c @@ -229,7 +229,11 @@ static int _variables_executables(Configure * configure, FILE * fp) fprintf(fp, "%s", "RM\t= rm -f\n"); } if(config_get(configure->config, "", "package")) + { + if(targets == NULL) + fprintf(fp, "%s", "RM\t= rm -f\n"); fprintf(fp, "%s", "LN\t= ln -sf\nTAR\t= tar -czvf\n"); + } if(targets != NULL) { fprintf(fp, "%s", "MKDIR\t= mkdir -p\n");