782bc23290
And automatically install a .forward file.
66 lines
1.3 KiB
Makefile
66 lines
1.3 KiB
Makefile
include ../defines.mk
|
|
|
|
SUBDIRS = init.d cron ocf test
|
|
|
|
SCRIPTS = \
|
|
vzdump \
|
|
vzrestore \
|
|
pvestatd \
|
|
pvesh \
|
|
pveam \
|
|
pvebanner \
|
|
pvectl \
|
|
pvedaemon \
|
|
pveversion \
|
|
pveperf
|
|
|
|
MANS = \
|
|
pvectl.1 \
|
|
vzdump.1 \
|
|
vzrestore.1 \
|
|
pvestatd.1 \
|
|
pvedaemon.1 \
|
|
pveversion.1 \
|
|
pveperf.1
|
|
|
|
all: ${MANS}
|
|
|
|
%.1: %.1.pod
|
|
rm -f $@
|
|
cat $<|pod2man -n $* -s 1 -r ${VERSION} -c "Proxmox Documentation" >$@
|
|
|
|
%.1.pod: %
|
|
podselect $*>$@
|
|
|
|
pvectl.1.pod: pvectl
|
|
perl -I.. ./pvectl printmanpod >$@
|
|
|
|
vzdump.1.pod: vzdump
|
|
perl -I.. -T ./vzdump printmanpod >$@
|
|
|
|
vzrestore.1.pod: vzrestore
|
|
perl -I.. ./vzrestore printmanpod >$@
|
|
|
|
.PHONY: install
|
|
install: ${SCRIPTS} ${MANS} pvemailforward
|
|
perl -I.. ./pvesh verifyapi
|
|
install -d ${BINDIR}
|
|
install -m 0755 ${SCRIPTS} ${BINDIR}
|
|
install -m 2755 -g www-data pvemailforward ${BINDIR}
|
|
install -d ${MAN1DIR}
|
|
install -m 0644 ${MANS} ${MAN1DIR}
|
|
install -d ${PODDIR}
|
|
install -m 0644 pvectl.1.pod ${PODDIR}
|
|
install -m 0644 vzdump.1.pod ${PODDIR}
|
|
install -m 0644 vzrestore.1.pod ${PODDIR}
|
|
set -e && for i in ${SUBDIRS}; do ${MAKE} -C $$i $@; done
|
|
|
|
.PHONY: distclean
|
|
distclean: clean
|
|
set -e && for i in ${SUBDIRS}; do ${MAKE} -C $$i $@; done
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -rf *~ ${MANS} *.1.pod
|
|
set -e && for i in ${SUBDIRS}; do ${MAKE} -C $$i $@; done
|