summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorArun Isaac2023-01-21 01:42:55 +0000
committerArun Isaac2023-01-21 01:56:11 +0000
commitd0efe6b9363a1e704fb354a75d76b7f0f9130dc1 (patch)
treea25837c83a5c839c30507a102c44ce999d8f56f3 /Makefile
parent0b8980fea1d3e7612f1b4a6358744ca6449ed87f (diff)
downloadguile-email-d0efe6b9363a1e704fb354a75d76b7f0f9130dc1.tar.gz
guile-email-d0efe6b9363a1e704fb354a75d76b7f0f9130dc1.tar.lz
guile-email-d0efe6b9363a1e704fb354a75d76b7f0f9130dc1.zip
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Ʃ <aconchillo@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
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: