pve-manager/PVE/Makefile

47 lines
1.0 KiB
Makefile
Raw Normal View History

include ../defines.mk
SUBDIRS=API2 VZDump
PERLSOURCE = \
API2.pm \
2012-01-30 12:02:56 +01:00
API2Tools.pm \
API2Client.pm \
ExtJSIndex.pm \
NoVncIndex.pm \
2013-04-11 06:48:01 +02:00
HTTPServer.pm \
APIDaemon.pm \
REST.pm \
2011-09-28 14:08:54 +02:00
OpenVZ.pm \
2011-12-02 10:38:41 +01:00
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