]>
Commit | Line | Data |
---|---|---|
1 | include /usr/share/dpkg/pkg-info.mk | |
2 | ||
3 | PACKAGE=libpve-guest-common-perl | |
4 | ||
5 | DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb | |
6 | DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc | |
7 | ||
8 | BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM} | |
9 | ||
10 | DESTDIR= | |
11 | ||
12 | PERL5DIR=${DESTDIR}/usr/share/perl5 | |
13 | DOCDIR=${DESTDIR}/usr/share/doc/${PACKAGE} | |
14 | ||
15 | all: | |
16 | ||
17 | ${BUILDDIR}: | |
18 | rm -rf ${BUILDDIR} | |
19 | rsync -a * ${BUILDDIR} | |
20 | echo "git clone git://git.proxmox.com/git/pve-guest-common.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}/debian/SOURCE | |
21 | ||
22 | .PHONY: deb | |
23 | deb: ${DEB} | |
24 | ${DEB}: ${BUILDDIR} | |
25 | cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc | |
26 | lintian ${DEB} | |
27 | ||
28 | .PHONY: dsc | |
29 | dsc: ${DSC} | |
30 | ${DSC}: ${BUILDDIR} | |
31 | cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d -nc | |
32 | lintian ${DSC} | |
33 | ||
34 | install: PVE | |
35 | install -d ${PERL5DIR}/PVE | |
36 | install -m 0644 PVE/GuestHelpers.pm ${PERL5DIR}/PVE/ | |
37 | install -m 0644 PVE/AbstractConfig.pm ${PERL5DIR}/PVE/ | |
38 | install -m 0644 PVE/AbstractMigrate.pm ${PERL5DIR}/PVE/ | |
39 | install -m 0644 PVE/ReplicationConfig.pm ${PERL5DIR}/PVE/ | |
40 | install -m 0644 PVE/ReplicationState.pm ${PERL5DIR}/PVE/ | |
41 | install -m 0644 PVE/Replication.pm ${PERL5DIR}/PVE/ | |
42 | install -d ${PERL5DIR}/PVE/VZDump | |
43 | install -m 0644 PVE/VZDump/Plugin.pm ${PERL5DIR}/PVE/VZDump/ | |
44 | install -m 0644 PVE/VZDump/Common.pm ${PERL5DIR}/PVE/VZDump/ | |
45 | ||
46 | .PHONY: check | |
47 | check: | |
48 | $(MAKE) -C tests check | |
49 | ||
50 | .PHONY: upload | |
51 | upload: ${DEB} | |
52 | tar cf - ${DEB} | ssh repoman@repo.proxmox.com -- upload --product pve --dist buster | |
53 | ||
54 | distclean: clean | |
55 | ||
56 | clean: | |
57 | rm -rf ${BUILDDIR} *.deb *.dsc *.changes *.buildinfo *.tar.gz | |
58 | ||
59 | .PHONY: dinstall | |
60 | dinstall: ${DEB} | |
61 | dpkg -i ${DEB} |