commit 58c8bd48f78c5c1b5a6f6b343b7692576f3993a4
parent bcc1d7a335493874d704762958e39c57161c5c86
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Thu, 2 Oct 2025 12:02:42 +0200
Correct the "install" target in the Makefile
The SSE and AVX files were not installed in subdirectories as expected.
Diffstat:
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
@@ -150,9 +150,13 @@ rsimd-local.pc: rsimd.pc.in
install: library pkg
install() { mode="$$1"; prefix="$$2"; shift 2; \
- mkdir -p "$${prefix}"; \
- cp "$$@" "$${prefix}"; \
- chmod "$${mode}" "$$@"; \
+ printf "%s\n" "$$@" | while read -r i; do \
+ f="$${i##src/}"; \
+ p="$${prefix}/$$(dirname "$${f}")"; \
+ mkdir -p "$${p}"; \
+ cp "$${i}" "$${p}"; \
+ chmod "$${mode}" "$${p}/$${f##*/}"; \
+ done; \
}; \
install 755 "$(DESTDIR)$(LIBPREFIX)" $(LIBNAME); \
install 644 "$(DESTDIR)$(LIBPREFIX)/pkgconfig" rsimd.pc; \