2011-08-23 16:11:04 +02:00
i n c l u d e . . / d e f i n e s . m k
2015-09-04 11:16:24 +02:00
SUBDIRS = API2 VZDump Status CLI Service
2011-08-23 16:11:04 +02:00
PERLSOURCE = \
API2.pm \
2012-01-30 12:02:56 +01:00
API2Tools.pm \
2011-08-23 16:11:04 +02:00
API2Client.pm \
2014-08-04 08:32:21 +02:00
ExtJSIndex.pm \
2014-08-05 08:31:17 +02:00
TouchIndex.pm \
2014-08-05 06:38:01 +02:00
NoVncIndex.pm \
2013-04-11 06:48:01 +02:00
HTTPServer.pm \
2011-08-23 16:11:04 +02:00
REST.pm \
2012-02-21 11:42:32 +01:00
APLInfo.pm \
2012-12-28 12:50:13 +01:00
AutoBalloon.pm \
2014-01-22 09:33:15 +01:00
CephTools.pm \
2015-11-03 16:42:16 +01:00
Report.pm \
2012-02-16 11:13:23 +01:00
VZDump.pm
2011-08-23 16:11:04 +02:00
all : pvecfg .pm ${SUBDIRS }
2011-09-15 14:54:42 +02:00
REPOID = ` ../repoid.pl ../.git`
2011-08-23 16:11:04 +02:00
pvecfg.pm : pvecfg .pm .in
2011-12-20 07:04:39 +01:00
sed -e s/@VERSION@/${ VERSION } / -e s/@PACKAGERELEASE@/${ PACKAGERELEASE } / -e s/@PACKAGE@/${ PACKAGE } / -e s/@REPOID@/${ REPOID } / $< >$@ .tmp
2011-09-15 14:54:42 +02:00
mv $@ .tmp $@
2011-08-23 16:11:04 +02:00
% :
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
2011-09-15 14:54:42 +02:00
rm -rf *~ pvecfg.pm pvecfg.pm.tmp
2011-08-23 16:11:04 +02:00
.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