pve-manager/PVE/Makefile
Dietmar Maurer df9b9fc92c moved vzdump sources to this packages
We want to share code and use new PVE 2 framework features. So it is no longer possible to distribute this a separate packages.
2011-10-12 08:30:05 +02:00

40 lines
865 B
Makefile

include ../defines.mk
SUBDIRS=API2 VZDump
PERLSOURCE = \
API2.pm \
API2Client.pm \
APIDaemon.pm \
REST.pm \
OpenVZ.pm \
VZDump.pm \
APLInfo.pm
all: pvecfg.pm ${SUBDIRS}
REPOID=`../repoid.pl ../.git`
pvecfg.pm: pvecfg.pm.in
sed -e s/@VERSION@/${VERSION}/ -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