pve-manager/PVE/Makefile
2015-06-22 09:45:57 +02:00

46 lines
1.0 KiB
Makefile

include ../defines.mk
SUBDIRS=API2 VZDump Status
PERLSOURCE = \
API2.pm \
API2Tools.pm \
API2Client.pm \
ExtJSIndex.pm \
ExtJSIndex5.pm \
TouchIndex.pm \
NoVncIndex.pm \
HTTPServer.pm \
REST.pm \
APLInfo.pm \
AutoBalloon.pm \
CephTools.pm \
VZDump.pm
all: pvecfg.pm ${SUBDIRS}
REPOID=`../repoid.pl ../.git`
pvecfg.pm: pvecfg.pm.in
sed -e s/@VERSION@/${VERSION}/ -e s/@PACKAGERELEASE@/${PACKAGERELEASE}/ -e s/@PACKAGE@/${PACKAGE}/ -e s/@REPOID@/${REPOID}/ $< >$@.tmp
mv $@.tmp $@
%:
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:
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