pve-manager/PVE/Makefile

40 lines
940 B
Makefile
Raw Normal View History

include ../defines.mk
SUBDIRS=API2 Status CLI Service Ceph Jobs
PERLSOURCE = \
API2.pm \
2012-01-30 15:02:56 +04:00
API2Tools.pm \
APLInfo.pm \
AutoBalloon.pm \
CertCache.pm \
CertHelpers.pm \
ExtMetric.pm \
HTTPServer.pm \
Jobs.pm \
NodeConfig.pm \
Report.pm \
VZDump.pm
all: pvecfg.pm ${SUBDIRS}
set -e && for i in ${SUBDIRS}; do ${MAKE} -C $$i; done
pvecfg.pm: pvecfg.pm.in
sed -e s/@VERSION@/${VERSION}/ -e s/@PVERELEASE@/${PVERELEASE}/ -e s/@PACKAGE@/${PACKAGE}/ -e s/@REPOID@/${REPOID}/ $< >$@.tmp
mv $@.tmp $@
%:
set -e && for i in ${SUBDIRS}; do ${MAKE} -C $$i $@; done
.PHONY: clean
clean:
set -e && for i in ${SUBDIRS}; do ${MAKE} -C $$i $@; done
rm -rf *~ pvecfg.pm pvecfg.pm.tmp
.PHONY: install
install: pvecfg.pm ${PERLSOURCE}
install -d ${PERLLIBDIR}/PVE
install -m 0644 pvecfg.pm ${PERLLIBDIR}/PVE/
install -m 0644 ${PERLSOURCE} ${PERLLIBDIR}/PVE/
set -e && for i in ${SUBDIRS}; do ${MAKE} -C $$i $@; done