From ad3e26d042689fa5e17d15147076a0a6e63e5ce2 Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Wed, 10 Aug 2016 09:00:20 -0500 Subject: [PATCH] install manpages using the install-docs target The MANINSTALL/man1 dir needs to be installed first before installing manpages into it. Signed-off-by: Lokesh Mandvekar --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6f687f47..6744f31a 100644 --- a/Makefile +++ b/Makefile @@ -53,8 +53,7 @@ docs: $(MANPAGES_MD:%.md=%) clean: rm -f skopeo docs/*.1 -install: install-binary - install -m 644 man1/skopeo.1 ${MANINSTALLDIR}/man1/ +install: install-binary install-docs # TODO(runcom) #install -m 644 completion/bash/skopeo ${BASHINSTALLDIR}/ @@ -62,6 +61,9 @@ install-binary: install -d -m 0755 ${INSTALLDIR} install -m 755 skopeo ${INSTALLDIR} +install-docs: + install -d -m 0755 ${MANINSTALLDIR}/man1 + install -m 644 docs/skopeo.1 ${MANINSTALLDIR}/man1/ shell: build-container $(DOCKER_RUN_DOCKER) bash