mirror of
https://github.com/moby/moby.git
synced 2026-01-11 02:31:44 +00:00
man: create parent directories in install recipe
Support the use of `make install` in packaging scripts, where the $mandir tree might not exist under $DESTDIR. For portability, create the parent directories using a separate install command instead of relying on the non-portable `-D` flag. Set errexit so the install target fails if any install step fails. Signed-off-by: Cory Snider <csnider@mirantis.com>
This commit is contained in:
@@ -35,7 +35,9 @@ man%:
|
||||
|
||||
.PHONY: install
|
||||
install: all
|
||||
@set -ex; \
|
||||
for sec in $(sections); do \
|
||||
$(INSTALL) -d $(DESTDIR)$(mandir)/man$$sec && \
|
||||
$(INSTALL_DATA) man$$sec/* $(DESTDIR)$(mandir)/man$$sec; \
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user