]> git.proxmox.com Git - pve-manager.git/blame - bin/Makefile
pveperf: use fsync syscall from PVE::Tools
[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
c2b121c0 9SERVICES = pvestatd pveproxy pvedaemon spiceproxy
ece19ae2 10CLITOOLS = vzdump pvesubscription pveceph pveam pvesr pvenode pvesh
0d640361 11
beb651ee 12SCRIPTS = \
0d640361 13 ${SERVICES} \
45e37400 14 ${CLITOOLS} \
beb651ee 15 pvebanner \
beb651ee 16 pveversion \
46c17bd2 17 pvemailforward.pl \
b179a622 18 pveupgrade \
c9355915 19 pveupdate \
e03a7900
EK
20 pveperf \
21 pvereport
beb651ee 22
0d640361
DM
23SERVICE_MANS = $(addsuffix .8, ${SERVICES})
24
25CLI_MANS = \
45e37400 26 $(addsuffix .1, ${CLITOOLS}) \
0d640361 27 pveversion.1 \
0d640361 28 pveupgrade.1 \
108b7229 29 pveperf.1 \
108b7229 30 pvereport.1 \
f6b62dd2 31
c436a4ba
FG
32BASH_COMPLETIONS = \
33 $(addsuffix .service-bash-completion, ${SERVICES}) \
34 $(addsuffix .bash-completion, ${CLITOOLS}) \
35
beb651ee 36
0d640361
DM
37all: ${SERVICE_MANS} ${CLI_MANS} pvemailforward
38
339e4159
DM
39%.1: %.1.pod
40 rm -f $@
0d640361
DM
41 cat $<|pod2man -n $* -s 1 -r ${VERSION} -c "Proxmox Documentation" >$@.tmp
42 mv $@.tmp $@
339e4159 43
0d6bb692
TL
44%.1.pod:
45 podselect $* > $@.tmp
0d640361 46 mv $@.tmp $@
339e4159 47
0d6bb692 48pveversion.1.pod: pveversion
0d640361 49pveupgrade.1.pod: pveupgrade
e03a7900 50pvereport.1.pod: pvereport
e03a7900 51
46c17bd2 52pvemailforward: pvemailforward.c
103ddb88 53 $(CC) $(CPPFLAGS) $(CFLAGS) -Wall -g -O2 $< -o $@
46c17bd2 54
7f4d4526
FG
55.PHONY: check
56check: $(addsuffix .service-api-verified, ${SERVICES}) $(addsuffix .api-verified, ${CLITOOLS})
57 rm -f *.service-api-verified *.api-verified
58
0d640361 59.PHONY: install
c436a4ba 60install: ${SCRIPTS} ${CLI_MANS} ${SERVICE_MANS} pvemailforward ${BASH_COMPLETIONS}
beb651ee
DM
61 install -d ${BINDIR}
62 install -m 0755 ${SCRIPTS} ${BINDIR}
46c17bd2 63 install -s -m 2755 -g www-data pvemailforward ${BINDIR}
beb651ee 64 install -d ${MAN1DIR}
0d640361
DM
65 install -m 0644 ${CLI_MANS} ${MAN1DIR}
66 install -d ${MAN8DIR}
67 install -m 0644 ${SERVICE_MANS} ${MAN8DIR}
45e37400 68 for i in ${CLITOOLS}; do install -m 0644 -D $$i.bash-completion ${BASHCOMPLDIR}/$$i; done
0d640361 69 for i in ${SERVICES}; do install -m 0644 -D $$i.service-bash-completion ${BASHCOMPLDIR}/$$i; done
beb651ee 70
beb651ee
DM
71.PHONY: clean
72clean:
567a0d89 73 make cleanup-docgen
7f4d4526 74 rm -rf *~ *.tmp ${CLI_MANS} ${SERVICE_MANS} *.1.pod *.8.pod pvemailforward *.bash-completion *.service-bash-completion *.api-verified *.service-api-verified