1 include /usr
/share
/dpkg
/pkg-info.mk
2 include /usr
/share
/dpkg
/architecture.mk
9 LIBDIR
=${PREFIX}/lib
/${PACKAGE}
10 MANDIR
=${PREFIX}/share
/man
11 DOCDIR
=${PREFIX}/share
/doc
12 MAN1DIR
=${MANDIR}/man1
/
13 MAN5DIR
=${MANDIR}/man5
/
14 BASHCOMPLDIR
=${PREFIX}/share
/bash-completion
/completions
/
15 ZSHCOMPLDIR
=${PREFIX}/share
/zsh
/vendor-completions
/
16 export PERLDIR
=${PREFIX}/share
/perl5
17 PERLINCDIR
=${PERLDIR}/asm-x86_64
19 GITVERSION
:=$(shell git rev-parse HEAD
)
21 DEB
=${PACKAGE}_
${DEB_VERSION_UPSTREAM_REVISION}_
${DEB_BUILD_ARCH}.deb
22 DBG_DEB
=${PACKAGE}-dbgsym_
${DEB_VERSION_UPSTREAM_REVISION}_
${DEB_BUILD_ARCH}.deb
24 DEBS
=${DEB} ${DBG_DEB}
26 # this requires package pve-doc-generator
28 include /usr
/share
/pve-doc-generator
/pve-doc-generator.mk
37 PVE_GENERATING_DOCS
=1 perl
-I.
-T
-e
"use PVE::CLI::qm; PVE::CLI::qm->generate_bash_completions();" >$@.tmp
40 qmrestore.bash-completion
:
41 PVE_GENERATING_DOCS
=1 perl
-I.
-T
-e
"use PVE::CLI::qmrestore; PVE::CLI::qmrestore->generate_bash_completions();" >$@.tmp
45 PVE_GENERATING_DOCS
=1 perl
-I.
-T
-e
"use PVE::CLI::qm; PVE::CLI::qm->generate_zsh_completions();" >$@.tmp
48 qmrestore.zsh-completion
:
49 PVE_GENERATING_DOCS
=1 perl
-I.
-T
-e
"use PVE::CLI::qmrestore; PVE::CLI::qmrestore->generate_zsh_completions();" >$@.tmp
52 PKGSOURCES
=qm qm
.1 qmrestore qmrestore
.1 qmextract qm.conf
.5 qm.bash-completion qmrestore.bash-completion \
53 qm.zsh-completion qmrestore.zsh-completion
56 install: ${PKGSOURCES}
57 install -d
${DESTDIR}/${SBINDIR}
58 install -d
${DESTDIR}${LIBDIR}
59 install -d
${DESTDIR}/${MAN1DIR}
60 install -d
${DESTDIR}/${MAN5DIR}
61 install -d
${DESTDIR}/usr
/share
/${PACKAGE}
62 install -m
0644 -D qm.bash-completion
${DESTDIR}/${BASHCOMPLDIR}/qm
63 install -m
0644 -D qmrestore.bash-completion
${DESTDIR}/${BASHCOMPLDIR}/qmrestore
64 install -m
0644 -D qm.zsh-completion
${DESTDIR}/${ZSHCOMPLDIR}/_qm
65 install -m
0644 -D qmrestore.zsh-completion
${DESTDIR}/${ZSHCOMPLDIR}/_qmrestore
66 install -m
0644 -D bootsplash.jpg
${DESTDIR}/usr
/share
/${PACKAGE}
67 $(MAKE
) -C PVE
install
68 $(MAKE
) -C qmeventd
install
69 $(MAKE
) -C qemu-configs
install
70 $(MAKE
) -C vm-network-scripts
install
71 install -m
0755 qm
${DESTDIR}${SBINDIR}
72 install -m
0755 qmrestore
${DESTDIR}${SBINDIR}
73 install -D
-m
0644 modules-load.conf
${DESTDIR}/etc
/modules-load.d
/qemu-server.conf
74 install -m
0755 qmextract
${DESTDIR}${LIBDIR}
75 install -m
0644 qm
.1 ${DESTDIR}/${MAN1DIR}
76 install -m
0644 qmrestore
.1 ${DESTDIR}/${MAN1DIR}
77 install -m
0644 qm.conf
.5 ${DESTDIR}/${MAN5DIR}
78 cd
${DESTDIR}/${MAN5DIR}; ln
-s
-f qm.conf
.5.gz vm.conf
.5.gz
86 echo
"git clone git://git.proxmox.com/git/qemu-server.git\\ngit checkout ${GITVERSION}" > build
/debian
/SOURCE
87 cd build
; dpkg-buildpackage
-b
-us
-uc
92 PVE_GENERATING_DOCS
=1 perl
-I. .
/qm verifyapi
97 tar cf
- ${DEBS} | ssh repoman@repo.proxmox.com upload
--product pve
--dist buster
101 $(MAKE
) cleanup-docgen
102 rm -rf build
*.deb
*.buildinfo
*.changes
103 find .
-name
'*~' -exec
rm {} ';'