From 64f98c142ebf58b08fe69c71ab959bacf69e2aa6 Mon Sep 17 00:00:00 2001 From: "Laszlo Boszormenyi (GCS)" Date: Wed, 13 Jan 2021 21:53:15 +0000 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