From 56eb95dd609c05f8c9a6d7c3363f97c3b7951c9c Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 7 Sep 2015 16:00:49 +0200 Subject: [PATCH] Add missing install target dependencies These added dependencies let you execute `make install` repeatedly, whitout using `make clean` in between. Without it make autodeleted the %.1.pod and %.8.pod files as the install target doesn't declare a dependency although it needs them. Signed-off-by: Thomas Lamprecht --- bin/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/Makefile b/bin/Makefile index 7fb56ff6..56c9f1ad 100644 --- a/bin/Makefile +++ b/bin/Makefile @@ -19,6 +19,7 @@ SCRIPTS = \ pveperf SERVICE_MANS = $(addsuffix .8, ${SERVICES}) +SERVICE_PODS = $(addsuffix .pod, ${SERVICE_MANS}) CLI_MANS = \ $(addsuffix .1, ${CLITOOLS}) \ @@ -26,6 +27,8 @@ CLI_MANS = \ pveversion.1 \ pveupgrade.1 \ pveperf.1 +CLI_PODS = $(addsuffix .pod, ${CLI_MANS}) + all: ${SERVICE_MANS} ${CLI_MANS} pvemailforward @@ -80,7 +83,7 @@ pvemailforward: pvemailforward.c gcc $< -o $@ -g -O2 -Wall -ldl -lc .PHONY: install -install: ${SCRIPTS} ${CLI_MANS} ${SERVICE_MANS} pvemailforward $(addsuffix .service-bash-completion, ${SERVICES}) $(addsuffix .bash-completion, ${CLITOOLS}) +install: ${SCRIPTS} ${CLI_MANS} ${SERVICE_MANS} pvemailforward $(addsuffix .service-bash-completion, ${SERVICES}) $(addsuffix .bash-completion, ${CLITOOLS}) ${SERVICE_PODS} ${CLI_PODS} perl -I.. ./pvesh verifyapi for i in ${CLITOOLS}; do perl -I.. -T -e "use PVE::CLI::$$i; PVE::CLI::$$i->verify_api();"; done for i in ${SERVICES}; do perl -I.. -T -e "use PVE::Service::$$i; PVE::Service::$$i->verify_api();"; done