]> git.proxmox.com Git - pve-manager-legacy.git/blame - bin/Makefile
bump version to 7.4-4
[pve-manager-legacy.git] / bin / Makefile
CommitLineData
c3731ed2
DM
1include ../defines.mk
2
c57f9515
DM
3# this requires package pve-doc-generator
4export NOVIEW=1
203b6f35
FG
5
6PERL_DOC_INC_DIRS=..
c57f9515
DM
7include /usr/share/pve-doc-generator/pve-doc-generator.mk
8
89b30bf3 9SERVICES = pvestatd pveproxy pvedaemon spiceproxy pvescheduler
75176c95 10CLITOOLS = vzdump pvesubscription pveceph pveam pvesr pvenode pvesh pve6to7
c752018f 11
c3731ed2 12SCRIPTS = \
c752018f 13 ${SERVICES} \
96860456 14 ${CLITOOLS} \
c3731ed2 15 pvebanner \
c3731ed2 16 pveversion \
abc4a675 17 pveupgrade \
d6b52850 18 pveupdate \
cd8f966e
EK
19 pveperf \
20 pvereport
c3731ed2 21
c752018f
DM
22SERVICE_MANS = $(addsuffix .8, ${SERVICES})
23
24CLI_MANS = \
96860456 25 $(addsuffix .1, ${CLITOOLS}) \
c752018f 26 pveversion.1 \
c752018f 27 pveupgrade.1 \
9c5c9b62 28 pveperf.1 \
9c5c9b62 29 pvereport.1 \
4f406f45 30
829fe4ac
FG
31BASH_COMPLETIONS = \
32 $(addsuffix .service-bash-completion, ${SERVICES}) \
33 $(addsuffix .bash-completion, ${CLITOOLS}) \
34
3fa3cc56
CE
35ZSH_COMPLETIONS = \
36 $(addsuffix .service-zsh-completion, ${SERVICES}) \
37 $(addsuffix .zsh-completion, ${CLITOOLS}) \
c3731ed2 38
fe5aa1cf 39all: ${SERVICE_MANS} ${CLI_MANS}
c752018f 40
590d0595
DM
41%.1: %.1.pod
42 rm -f $@
3331257e 43 cat $<|pod2man -n $* -s 1 -r ${VERSION} -c"Proxmox Documentation" - >$@.tmp
c752018f 44 mv $@.tmp $@
590d0595 45
ba5aef79
TL
46%.1.pod:
47 podselect $* > $@.tmp
c752018f 48 mv $@.tmp $@
590d0595 49
9b170431 50pve6to7.1:
b82d17cf
TL
51 printf ".TH PVE6TO7 1\n.SH NAME\npve6to7 \- Proxmox VE upgrade checker script for 6.4 to 7.x\n" > $@
52 printf ".SH SYNOPSIS\npve6to7 [--full]\n" >> $@
9b170431 53
ba5aef79 54pveversion.1.pod: pveversion
c752018f 55pveupgrade.1.pod: pveupgrade
cd8f966e 56pvereport.1.pod: pvereport
cd8f966e 57
946a2dad
FG
58.PHONY: check
59check: $(addsuffix .service-api-verified, ${SERVICES}) $(addsuffix .api-verified, ${CLITOOLS})
60 rm -f *.service-api-verified *.api-verified
61
c752018f 62.PHONY: install
fe5aa1cf 63install: ${SCRIPTS} ${CLI_MANS} ${SERVICE_MANS} ${BASH_COMPLETIONS} ${ZSH_COMPLETIONS}
c3731ed2
DM
64 install -d ${BINDIR}
65 install -m 0755 ${SCRIPTS} ${BINDIR}
ca0fc07d
TL
66 install -d ${USRSHARE}/helpers
67 install -m 0755 pve-startall-delay ${USRSHARE}/helpers
c3731ed2 68 install -d ${MAN1DIR}
c752018f
DM
69 install -m 0644 ${CLI_MANS} ${MAN1DIR}
70 install -d ${MAN8DIR}
71 install -m 0644 ${SERVICE_MANS} ${MAN8DIR}
96860456 72 for i in ${CLITOOLS}; do install -m 0644 -D $$i.bash-completion ${BASHCOMPLDIR}/$$i; done
c752018f 73 for i in ${SERVICES}; do install -m 0644 -D $$i.service-bash-completion ${BASHCOMPLDIR}/$$i; done
3fa3cc56
CE
74 for i in ${CLITOOLS}; do install -m 0644 -D $$i.zsh-completion ${ZSHCOMPLDIR}/_$$i; done
75 for i in ${SERVICES}; do install -m 0644 -D $$i.service-zsh-completion ${ZSHCOMPLDIR}/_$$i; done
c3731ed2 76
c3731ed2
DM
77.PHONY: clean
78clean:
c57f9515 79 make cleanup-docgen
fe5aa1cf 80 rm -rf *~ *.tmp ${CLI_MANS} ${SERVICE_MANS} *.1.pod *.8.pod \
3fa3cc56
CE
81 *.bash-completion *.service-bash-completion \
82 *.zsh-completion *.service-zsh-completion \
83 *.api-verified *.service-api-verified