From d0efe6b9363a1e704fb354a75d76b7f0f9130dc1 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Sat, 21 Jan 2023 01:42:55 +0000 Subject: Makefile: Use install instead of cp and mkdir. The cp on macOS does not support the --parents flag. Also, install correctly replaces files when they already exist. * Makefile (install): Use install instead of cp and mkdir. Reported-by: Aleix Conchillo FlaquƩ --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index cc69eed..b7ed63e 100644 --- a/Makefile +++ b/Makefile @@ -90,9 +90,12 @@ $(dist_archive): .git/refs/heads/master $(GPG) --detach-sign --armor $< install: $(doc_info) - mkdir -p $(scmdir) $(godir) - cp --parents -vr $(sources) $(scmdir) - cp --parents -vr $(objects) $(godir) + for source in $(sources); do \ + install -D $$source $(scmdir)/$$source; \ + done + for object in $(objects); do \ + install -D $$object $(godir)/$$object; \ + done install -D $(doc_info) --target-directory $(infodir) clean: -- cgit v1.2.3