summaryrefslogtreecommitdiffstats
path: root/man/Makefile.in
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-08-02 22:41:39 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-08-02 22:41:39 (EDT)
commita66a577977d5747ef4fcb73b1d139b77a79db80e (patch)
tree2ff51ad72cb110f77744e88950639e4a385c7084 /man/Makefile.in
parentb0362c0b23057f3fcfd9c41d5e6c7082758a3c1e (diff)
Portably install, set better file modes.
The install utility is not required by POSIX, and it's easily replaced by mkdir, cp, and chmod. Libraries, locales, and manual pages should not be executable.
Diffstat (limited to 'man/Makefile.in')
-rw-r--r--man/Makefile.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/man/Makefile.in b/man/Makefile.in
index 25a3882..387a599 100644
--- a/man/Makefile.in
+++ b/man/Makefile.in
@@ -73,7 +73,9 @@ clean:
install: all
@for obj in $(OBJS); do \
printf ' INSTALL man/%s\n' "$${obj}"; \
- $(INSTALL) -D "$${obj}" "$(DESTDIR)/$(mandir)/man$${obj##*.}/$${obj}"; \
+ mkdir -p '$(DESTDIR)/$(mandir)/man$${obj##*.}'; \
+ cp "$${obj}" "$(DESTDIR)/$(mandir)/man$${obj##*.}/$${obj}"; \
+ chmod 644 "$(DESTDIR)/$(mandir)/man$${obj##*.}/$${obj}"; \
done
uninstall: