include ../defines.mk SUBDIRS=API2 VZDump PERLSOURCE = \ API2.pm \ API2Tools.pm \ API2Client.pm \ ExtJSIndex.pm \ NoVncIndex.pm \ HTTPServer.pm \ APIDaemon.pm \ REST.pm \ OpenVZ.pm \ OpenVZMigrate.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