From 36088e8d21e3e8989e9fbba681f02e19e0a2198e Mon Sep 17 00:00:00 2001 From: Matias N Date: Wed, 25 Nov 2020 22:45:47 -0300 Subject: [PATCH] Config.mk: fix CATFILE macro to work when file list is empty (Linux) --- tools/Config.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/Config.mk b/tools/Config.mk index 0e2aac9cab..aa4dd29c36 100644 --- a/tools/Config.mk +++ b/tools/Config.mk @@ -463,7 +463,7 @@ define CATFILE endef else define CATFILE - $(Q) cat $(2) > $1 + $(Q) if [ -z "$(strip $(2))" ]; then echo '' > $(1); else cat $(2) > $1; fi endef endif