From 0d4eb2ff17b31a45285bdeadb78f29052b059bf0 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Thu, 14 Feb 2019 19:09:53 +0100 Subject: [PATCH] Add support for spaces in filenames (6/x) This adds a missing part for commands. GNU Make is required for this to work. --- src/makefile.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/makefile.c b/src/makefile.c index fc7bde9..d296d34 100644 --- a/src/makefile.c +++ b/src/makefile.c @@ -2884,7 +2884,9 @@ static int _uninstall_target(Makefile * makefile, _makefile_print(makefile, "$(EXEEXT)\n"); break; case TT_COMMAND: - _makefile_print(makefile, "\t%s%s/", rm_destdir, path); + _makefile_print(makefile, "\t%s", rm_destdir); + _makefile_print_escape(makefile, path); + _makefile_print(makefile, "/"); _makefile_print_escape(makefile, target); _makefile_print(makefile, "\n"); break;