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 <t.lampre...@proxmox.com> --- bin/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/Makefile b/bin/Makefile index 3039bf7..00279e9 100644 --- a/bin/Makefile +++ b/bin/Makefile @@ -21,6 +21,7 @@ SCRIPTS = \ pveperf SERVICE_MANS = $(addsuffix .8, ${SERVICES}) +SERVICE_PODS = $(addsuffix .pod, ${SERVICE_MANS}) CLI_MANS = \ $(addsuffix .1, ${CLITOOLS}) \ @@ -30,6 +31,8 @@ CLI_MANS = \ pveversion.1 \ pveupgrade.1 \ pveperf.1 +CLI_PODS = $(addsuffix .pod, ${CLI_MANS}) + all: ${SERVICE_MANS} ${CLI_MANS} pvemailforward @@ -90,7 +93,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 -- 2.1.4 _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel