From 9abac5b1349b6c1c3f8e16a0ca38432003d868b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Thu, 11 Aug 2016 18:55:12 +0200 Subject: [PATCH] Make the install-* targets depend on things they are installing This ensures that we are not installing e.g. an obsolete version of the man page after the Markdown version is updated. Note that this greatly benefits from the "skopeo" target being non-phony, otherwise (make install) would rebuild the binary. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6744f31a..e32c4971 100644 --- a/Makefile +++ b/Makefile @@ -57,11 +57,11 @@ install: install-binary install-docs # TODO(runcom) #install -m 644 completion/bash/skopeo ${BASHINSTALLDIR}/ -install-binary: +install-binary: skopeo install -d -m 0755 ${INSTALLDIR} install -m 755 skopeo ${INSTALLDIR} -install-docs: +install-docs: docs/skopeo.1 install -d -m 0755 ${MANINSTALLDIR}/man1 install -m 644 docs/skopeo.1 ${MANINSTALLDIR}/man1/