2011-08-23 18:11:04 +04:00
i n c l u d e . . / d e f i n e s . m k
2021-11-08 16:07:54 +03:00
SUBDIRS = API2 Status CLI Service Ceph Jobs
2011-08-23 18:11:04 +04:00
PERLSOURCE = \
API2.pm \
2012-01-30 15:02:56 +04:00
API2Tools.pm \
2012-02-21 14:42:32 +04:00
APLInfo.pm \
2012-12-28 15:50:13 +04:00
AutoBalloon.pm \
2019-11-11 13:28:33 +03:00
CertCache.pm \
2019-11-16 18:10:24 +03:00
CertHelpers.pm \
2019-11-16 18:17:07 +03:00
ExtMetric.pm \
2019-11-16 18:10:24 +03:00
HTTPServer.pm \
2021-11-08 16:07:54 +03:00
Jobs.pm \
2018-04-27 15:02:09 +03:00
NodeConfig.pm \
2019-11-16 18:10:24 +03:00
Report.pm \
2012-02-16 14:13:23 +04:00
VZDump.pm
2011-08-23 18:11:04 +04:00
all : pvecfg .pm ${SUBDIRS }
2018-10-17 14:02:01 +03:00
set -e && for i in ${ SUBDIRS } ; do ${ MAKE } -C $$ i; done
2011-08-23 18:11:04 +04:00
pvecfg.pm : pvecfg .pm .in
pvecfg: adapt version and release semantic
Wit commit bcef9bde68a920a4d204beb8ec1d5f334f7fbb78 we switched over
to using the dpkg-dev provided helpers to set package version,
architecture and such in the buildsystem.
But unlike other repositories we used the version also for giving it
back over the API through the during build generated PVE::pvecfg
module, which wasn't fully updated to the new style.
This patch does that, and also cleans up semantics a bit, the
following two changed:
release is now the Debian release, instead of the "package release"
(i.e., the -X part of a full package version).
version is now simply the full (pve-manager) version, e.g., 6.0-1 or
the currently for testing used 6.0-0+1
This allows to do everything we used this information for even in a
slightly easier way (no string concat needed anymore), and fits also
with the terminology we often used in our public channels (mailing
lists, forum, website)
Remove some cruft as we touch things.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-26 16:58:16 +03:00
sed -e s/@VERSION@/${ VERSION } / -e s/@PVERELEASE@/${ PVERELEASE } / -e s/@PACKAGE@/${ PACKAGE } / -e s/@REPOID@/${ REPOID } / $< >$@ .tmp
2011-09-15 16:54:42 +04:00
mv $@ .tmp $@
2011-08-23 18:11:04 +04:00
% :
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 16:54:42 +04:00
rm -rf *~ pvecfg.pm pvecfg.pm.tmp
2011-08-23 18:11:04 +04: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