From 016fc87b84ffa4bb76415ab86f366b348a46a789 Mon Sep 17 00:00:00 2001 From: "Laszlo Boszormenyi (GCS)" Date: Tue, 22 Sep 2020 18:29:12 +0100 Subject: [PATCH] unbreak install foreach and do individual installation Forwarded: no Last-Update: 2020-05-24 Long command line would break the execution. Gbp-Pq: Name unbreak_foreach.patch --- Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index e7c93f19..d6cee83e 100644 --- a/Makefile +++ b/Makefile @@ -2980,13 +2980,17 @@ install-headers: install-headers_c install-headers_cxx install-headers_c: $(E) "[INSTALL] Installing public C headers" - $(Q) $(foreach h, $(PUBLIC_HEADERS_C), $(INSTALL) -d $(prefix)/$(dir $(h)) && ) exit 0 || exit 1 - $(Q) $(foreach h, $(PUBLIC_HEADERS_C), $(INSTALL) $(h) $(prefix)/$(h) && ) exit 0 || exit 1 + for h in $(PUBLIC_HEADERS_C); do \ + $(INSTALL) -d $(prefix)/$$(dirname $$h); \ + $(INSTALL) $$h $(prefix)/$$h; \ + done install-headers_cxx: $(E) "[INSTALL] Installing public C++ headers" - $(Q) $(foreach h, $(PUBLIC_HEADERS_CXX), $(INSTALL) -d $(prefix)/$(dir $(h)) && ) exit 0 || exit 1 - $(Q) $(foreach h, $(PUBLIC_HEADERS_CXX), $(INSTALL) $(h) $(prefix)/$(h) && ) exit 0 || exit 1 + for h in $(PUBLIC_HEADERS_CXX); do \ + $(INSTALL) -d $(prefix)/$$(dirname $$h); \ + $(INSTALL) $$h $(prefix)/$$h; \ + done install-static: install-static_c install-static_cxx -- 2.30.2