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 <lsm5@fedoraproject.org>
This commit is contained in:
Lokesh Mandvekar 2016-08-10 09:00:20 -05:00 committed by Jhon Honce
parent 9a8529667d
commit ad3e26d042

View File

@ -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