]> git.proxmox.com Git - pve-manager.git/blame - bin/Makefile
ui: disable new notification UI for now, will be reworked
[pve-manager.git] / bin / Makefile
CommitLineData
beb651ee
DM
1include ../defines.mk
2
6d1115f2 3PERL_DOC_INC_DIRS=..
08c9d4eb 4-include /usr/share/pve-doc-generator/pve-doc-generator.mk
567a0d89 5
6385fb81 6SERVICES = pvestatd pveproxy pvedaemon spiceproxy pvescheduler
a98193c2
TL
7CLITOOLS = \
8 vzdump \
9 pvesubscription \
10 pveceph \
11 pveam \
12 pvesr \
13 pvenode \
14 pvesh \
a98193c2
TL
15 pve7to8 \
16
0d640361 17
beb651ee 18SCRIPTS = \
147d67c4
TL
19 $(SERVICES) \
20 $(CLITOOLS) \
beb651ee 21 pvebanner \
beb651ee 22 pveversion \
b179a622 23 pveupgrade \
c9355915 24 pveupdate \
e03a7900
EK
25 pveperf \
26 pvereport
beb651ee 27
147d67c4 28SERVICE_MANS = $(addsuffix .8, $(SERVICES))
0d640361
DM
29
30CLI_MANS = \
147d67c4 31 $(addsuffix .1, $(CLITOOLS)) \
0d640361 32 pveversion.1 \
0d640361 33 pveupgrade.1 \
108b7229 34 pveperf.1 \
108b7229 35 pvereport.1 \
f6b62dd2 36
c436a4ba 37BASH_COMPLETIONS = \
147d67c4
TL
38 $(addsuffix .service-bash-completion, $(SERVICES)) \
39 $(addsuffix .bash-completion, $(CLITOOLS)) \
c436a4ba 40
ad9d1215 41ZSH_COMPLETIONS = \
147d67c4
TL
42 $(addsuffix .service-zsh-completion, $(SERVICES)) \
43 $(addsuffix .zsh-completion, $(CLITOOLS)) \
beb651ee 44
147d67c4 45all: $(SERVICE_MANS) $(CLI_MANS)
0d640361 46
339e4159
DM
47%.1: %.1.pod
48 rm -f $@
147d67c4 49 cat $<|pod2man -n $* -s 1 -r $(VERSION) -c"Proxmox Documentation" - >$@.tmp
0d640361 50 mv $@.tmp $@
339e4159 51
0d6bb692
TL
52%.1.pod:
53 podselect $* > $@.tmp
0d640361 54 mv $@.tmp $@
339e4159 55
027f67e4 56pve6to7.1:
a98193c2
TL
57 printf ".TH PVE6TO7 1\n.SH NAME\npve6to7 \- Proxmox VE upgrade checker script for 6.4 to 7.x\n" > $@.tmp
58 printf ".SH NOTE\npve6to7 is for the previous upgrade, from Proxmox VE 6 to 7, but there's a\
59 new Proxmox VE 8 available, see the 'pve7to8' tool.\n" >> $@.tmp
60 printf ".SH SYNOPSIS\npve6to7 [--full]\n" >> $@.tmp
61 mv $@.tmp $@
62
63pve7to8.1:
64 printf ".TH PVE7TO8 1\n.SH NAME\npve7to8 \- Proxmox VE upgrade checker script for 7.4+ to current 8.x\n" > $@.tmp
65 printf ".SH DESCRIPTION\nThis tool will help you to detect common pitfalls and misconfguration\
66 before, and during the upgrade of a Proxmox VE system\n" >> $@.tmp
67 printf "Any failure must be addressed before the upgrade, and any waring must be addressed, \
68 or at least carefully evaluated, if a false-positive is suspected\n" >> $@.tmp
69 printf ".SH SYNOPSIS\npve7to8 [--full]\n" >> $@.tmp
70 mv $@.tmp $@
027f67e4 71
0d6bb692 72pveversion.1.pod: pveversion
0d640361 73pveupgrade.1.pod: pveupgrade
e03a7900 74pvereport.1.pod: pvereport
e03a7900 75
7f4d4526 76.PHONY: check
147d67c4 77check: $(addsuffix .service-api-verified, $(SERVICES)) $(addsuffix .api-verified, $(CLITOOLS))
7f4d4526
FG
78 rm -f *.service-api-verified *.api-verified
79
0d640361 80.PHONY: install
147d67c4
TL
81install: $(SCRIPTS) $(CLI_MANS) $(SERVICE_MANS) $(BASH_COMPLETIONS) $(ZSH_COMPLETIONS)
82 install -d $(BINDIR)
83 install -m 0755 $(SCRIPTS) $(BINDIR)
84 install -d $(USRSHARE)/helpers
85 install -m 0755 pve-startall-delay $(USRSHARE)/helpers
86 install -d $(MAN1DIR)
87 install -m 0644 $(CLI_MANS) $(MAN1DIR)
88 install -d $(MAN8DIR)
89 install -m 0644 $(SERVICE_MANS) $(MAN8DIR)
90 for i in $(CLITOOLS); do install -m 0644 -D $$i.bash-completion $(BASHCOMPLDIR)/$$i; done
91 for i in $(SERVICES); do install -m 0644 -D $$i.service-bash-completion $(BASHCOMPLDIR)/$$i; done
92 for i in $(CLITOOLS); do install -m 0644 -D $$i.zsh-completion $(ZSHCOMPLDIR)/_$$i; done
93 for i in $(SERVICES); do install -m 0644 -D $$i.service-zsh-completion $(ZSHCOMPLDIR)/_$$i; done
beb651ee 94
beb651ee
DM
95.PHONY: clean
96clean:
a98193c2 97 rm -f *.xml.tmp *.1 *.5 *.8 *{synopsis,opts}.adoc docinfo.xml *.tmp
08c9d4eb
TL
98 rm -f *~ *.tmp $(CLI_MANS) $(SERVICE_MANS) *.1.pod *.8.pod
99 rm -f *.bash-completion *.service-bash-completion *.zsh-completion *.service-zsh-completion
100 rm -f *.api-verified *.service-api-verified