mirror of
git://git.proxmox.com/git/pve-guest-common.git
synced 2025-03-11 16:58:18 +03:00
buildsys: split packaging and source build-systems
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
1c527dfe62
commit
960c85be38
24
Makefile
24
Makefile
@ -7,16 +7,12 @@ DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
|
||||
|
||||
BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
|
||||
|
||||
DESTDIR=
|
||||
|
||||
PERL5DIR=${DESTDIR}/usr/share/perl5
|
||||
DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE}
|
||||
|
||||
all:
|
||||
|
||||
${BUILDDIR}:
|
||||
rm -rf ${BUILDDIR}
|
||||
rsync -a * ${BUILDDIR}
|
||||
cp -a src ${BUILDDIR}
|
||||
cp -a debian ${BUILDDIR}/
|
||||
echo "git clone git://git.proxmox.com/git/pve-guest-common.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}/debian/SOURCE
|
||||
|
||||
.PHONY: deb
|
||||
@ -31,22 +27,6 @@ ${DSC}: ${BUILDDIR}
|
||||
cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d -nc
|
||||
lintian ${DSC}
|
||||
|
||||
install: PVE
|
||||
install -d ${PERL5DIR}/PVE
|
||||
install -m 0644 PVE/GuestHelpers.pm ${PERL5DIR}/PVE/
|
||||
install -m 0644 PVE/AbstractConfig.pm ${PERL5DIR}/PVE/
|
||||
install -m 0644 PVE/AbstractMigrate.pm ${PERL5DIR}/PVE/
|
||||
install -m 0644 PVE/ReplicationConfig.pm ${PERL5DIR}/PVE/
|
||||
install -m 0644 PVE/ReplicationState.pm ${PERL5DIR}/PVE/
|
||||
install -m 0644 PVE/Replication.pm ${PERL5DIR}/PVE/
|
||||
install -d ${PERL5DIR}/PVE/VZDump
|
||||
install -m 0644 PVE/VZDump/Plugin.pm ${PERL5DIR}/PVE/VZDump/
|
||||
install -m 0644 PVE/VZDump/Common.pm ${PERL5DIR}/PVE/VZDump/
|
||||
|
||||
.PHONY: check
|
||||
check:
|
||||
$(MAKE) -C tests check
|
||||
|
||||
.PHONY: upload
|
||||
upload: ${DEB}
|
||||
tar cf - ${DEB} | ssh repoman@repo.proxmox.com -- upload --product pve --dist buster
|
||||
|
24
src/Makefile
Normal file
24
src/Makefile
Normal file
@ -0,0 +1,24 @@
|
||||
DESTDIR=
|
||||
PERL5DIR=${DESTDIR}/usr/share/perl5
|
||||
DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE}
|
||||
|
||||
all:
|
||||
|
||||
install: PVE
|
||||
install -d ${PERL5DIR}/PVE
|
||||
install -m 0644 PVE/GuestHelpers.pm ${PERL5DIR}/PVE/
|
||||
install -m 0644 PVE/AbstractConfig.pm ${PERL5DIR}/PVE/
|
||||
install -m 0644 PVE/AbstractMigrate.pm ${PERL5DIR}/PVE/
|
||||
install -m 0644 PVE/ReplicationConfig.pm ${PERL5DIR}/PVE/
|
||||
install -m 0644 PVE/ReplicationState.pm ${PERL5DIR}/PVE/
|
||||
install -m 0644 PVE/Replication.pm ${PERL5DIR}/PVE/
|
||||
install -d ${PERL5DIR}/PVE/VZDump
|
||||
install -m 0644 PVE/VZDump/Plugin.pm ${PERL5DIR}/PVE/VZDump/
|
||||
install -m 0644 PVE/VZDump/Common.pm ${PERL5DIR}/PVE/VZDump/
|
||||
|
||||
.PHONY: check
|
||||
check:
|
||||
$(MAKE) -C tests check
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
Loading…
x
Reference in New Issue
Block a user