]> git.proxmox.com Git - pve-manager.git/blame - bin/Makefile
aplinfo: add bookworm release key to trusted ones
[pve-manager.git] / bin / Makefile
CommitLineData
beb651ee
DM
1include ../defines.mk
2
567a0d89
DM
3# this requires package pve-doc-generator
4export NOVIEW=1
6d1115f2
FG
5
6PERL_DOC_INC_DIRS=..
567a0d89
DM
7include /usr/share/pve-doc-generator/pve-doc-generator.mk
8
6385fb81 9SERVICES = pvestatd pveproxy pvedaemon spiceproxy pvescheduler
81dbe056 10CLITOOLS = vzdump pvesubscription pveceph pveam pvesr pvenode pvesh pve6to7
0d640361 11
beb651ee 12SCRIPTS = \
0d640361 13 ${SERVICES} \
45e37400 14 ${CLITOOLS} \
beb651ee 15 pvebanner \
beb651ee 16 pveversion \
b179a622 17 pveupgrade \
c9355915 18 pveupdate \
e03a7900
EK
19 pveperf \
20 pvereport
beb651ee 21
0d640361
DM
22SERVICE_MANS = $(addsuffix .8, ${SERVICES})
23
24CLI_MANS = \
45e37400 25 $(addsuffix .1, ${CLITOOLS}) \
0d640361 26 pveversion.1 \
0d640361 27 pveupgrade.1 \
108b7229 28 pveperf.1 \
108b7229 29 pvereport.1 \
f6b62dd2 30
c436a4ba
FG
31BASH_COMPLETIONS = \
32 $(addsuffix .service-bash-completion, ${SERVICES}) \
33 $(addsuffix .bash-completion, ${CLITOOLS}) \
34
ad9d1215
CE
35ZSH_COMPLETIONS = \
36 $(addsuffix .service-zsh-completion, ${SERVICES}) \
37 $(addsuffix .zsh-completion, ${CLITOOLS}) \
beb651ee 38
de59191b 39all: ${SERVICE_MANS} ${CLI_MANS}
0d640361 40
339e4159
DM
41%.1: %.1.pod
42 rm -f $@
8c6e5fc1 43 cat $<|pod2man -n $* -s 1 -r ${VERSION} -c"Proxmox Documentation" - >$@.tmp
0d640361 44 mv $@.tmp $@
339e4159 45
0d6bb692
TL
46%.1.pod:
47 podselect $* > $@.tmp
0d640361 48 mv $@.tmp $@
339e4159 49
027f67e4 50pve6to7.1:
d9fab556
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" >> $@
027f67e4 53
0d6bb692 54pveversion.1.pod: pveversion
0d640361 55pveupgrade.1.pod: pveupgrade
e03a7900 56pvereport.1.pod: pvereport
e03a7900 57
7f4d4526
FG
58.PHONY: check
59check: $(addsuffix .service-api-verified, ${SERVICES}) $(addsuffix .api-verified, ${CLITOOLS})
60 rm -f *.service-api-verified *.api-verified
61
0d640361 62.PHONY: install
de59191b 63install: ${SCRIPTS} ${CLI_MANS} ${SERVICE_MANS} ${BASH_COMPLETIONS} ${ZSH_COMPLETIONS}
beb651ee
DM
64 install -d ${BINDIR}
65 install -m 0755 ${SCRIPTS} ${BINDIR}
1ff3fef0
TL
66 install -d ${USRSHARE}/helpers
67 install -m 0755 pve-startall-delay ${USRSHARE}/helpers
beb651ee 68 install -d ${MAN1DIR}
0d640361
DM
69 install -m 0644 ${CLI_MANS} ${MAN1DIR}
70 install -d ${MAN8DIR}
71 install -m 0644 ${SERVICE_MANS} ${MAN8DIR}
45e37400 72 for i in ${CLITOOLS}; do install -m 0644 -D $$i.bash-completion ${BASHCOMPLDIR}/$$i; done
0d640361 73 for i in ${SERVICES}; do install -m 0644 -D $$i.service-bash-completion ${BASHCOMPLDIR}/$$i; done
ad9d1215
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
beb651ee 76
beb651ee
DM
77.PHONY: clean
78clean:
567a0d89 79 make cleanup-docgen
de59191b 80 rm -rf *~ *.tmp ${CLI_MANS} ${SERVICE_MANS} *.1.pod *.8.pod \
ad9d1215
CE
81 *.bash-completion *.service-bash-completion \
82 *.zsh-completion *.service-zsh-completion \
83 *.api-verified *.service-api-verified