3 SIMPACKAGE
=pve-ha-simulator
6 GITVERSION
:=$(shell cat .git
/refs
/heads
/master
)
8 ARCH
:=$(shell dpkg-architecture
-qDEB_BUILD_ARCH
)
10 DEB
=${PACKAGE}_
${VERSION}-${PKGREL}_
${ARCH}.deb
11 SIMDEB
=${SIMPACKAGE}_
${VERSION}-${PKGREL}_all.deb
16 .PHONY
: dinstall simdeb
18 dpkg
-i
${DEB} ${SIMDEB}
21 .PHONY
: simdeb
${SIMDEB}
26 rsync
-a simdebian
/ build
/debian
27 cp changelog.Debian build
/debian
/changelog
28 echo
"git clone git://git.proxmox.com/git/pve-ha-manager.git\\ngit checkout ${GITVERSION}" > build
/debian
/SOURCE
29 cd build
; dpkg-buildpackage
-rfakeroot
-b
-us
-uc
37 rsync
-a debian
/ build
/debian
38 cp changelog.Debian build
/debian
/changelog
39 echo
"git clone git://git.proxmox.com/git/pve-ha-manager.git\\ngit checkout ${GITVERSION}" > build
/debian
/SOURCE
40 cd build
; dpkg-buildpackage
-rfakeroot
-b
-us
-uc
46 rm -rf build
*.deb
${PACKAGE}-*.
tar.gz
*.changes
47 find .
-name
'*~' -exec
rm {} ';'
53 upload
: ${DEB} ${SIMDEB}
54 tar cf
- ${DEB} ${SIMDEB}|ssh repoman@repo.proxmox.com upload