diff options
author | Arun Isaac | 2023-01-21 01:42:55 +0000 |
---|---|---|
committer | Arun Isaac | 2023-01-21 01:56:11 +0000 |
commit | d0efe6b9363a1e704fb354a75d76b7f0f9130dc1 (patch) | |
tree | a25837c83a5c839c30507a102c44ce999d8f56f3 /Makefile | |
parent | 0b8980fea1d3e7612f1b4a6358744ca6449ed87f (diff) | |
download | guile-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-- | Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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: |