mirror of
git://git.proxmox.com/git/pve-ha-manager.git
synced 2025-01-07 21:18:00 +03:00
cf1ad777ff
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
58 lines
1.4 KiB
Makefile
58 lines
1.4 KiB
Makefile
VERSION=2.0
|
|
PACKAGE=pve-ha-manager
|
|
SIMPACKAGE=pve-ha-simulator
|
|
PKGREL=4
|
|
|
|
GITVERSION:=$(shell cat .git/refs/heads/master)
|
|
|
|
ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
|
|
|
|
DEB=${PACKAGE}_${VERSION}-${PKGREL}_${ARCH}.deb
|
|
SIMDEB=${SIMPACKAGE}_${VERSION}-${PKGREL}_all.deb
|
|
|
|
|
|
all: deb
|
|
|
|
.PHONY: dinstall simdeb
|
|
dinstall: $(DEB) $(SIMDEB)
|
|
dpkg -i ${DEB} ${SIMDEB}
|
|
|
|
|
|
.PHONY: simdeb
|
|
simdeb: ${SIMDEB}
|
|
${SIMDEB}:
|
|
rm -rf build
|
|
mkdir build
|
|
rsync -a src/ build
|
|
rsync -a simdebian/ build/debian
|
|
cp changelog.Debian build/debian/changelog
|
|
echo "git clone git://git.proxmox.com/git/pve-ha-manager.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE
|
|
cd build; dpkg-buildpackage -rfakeroot -b -us -uc
|
|
lintian ${SIMDEB}
|
|
|
|
.PHONY: deb
|
|
deb: ${DEB} ${SIMDEB}
|
|
${DEB}:
|
|
rm -rf build
|
|
mkdir build
|
|
rsync -a src/ build
|
|
rsync -a debian/ build/debian
|
|
cp changelog.Debian build/debian/changelog
|
|
echo "git clone git://git.proxmox.com/git/pve-ha-manager.git\\ngit checkout ${GITVERSION}" > build/debian/SOURCE
|
|
cd build; dpkg-buildpackage -rfakeroot -b -us -uc
|
|
lintian ${DEB}
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
make -C src clean
|
|
rm -rf build *.deb ${PACKAGE}-*.tar.gz *.changes *.buildinfo
|
|
find . -name '*~' -exec rm {} ';'
|
|
|
|
.PHONY: distclean
|
|
distclean: clean
|
|
|
|
.PHONY: upload
|
|
upload: ${DEB} ${SIMDEB}
|
|
tar cf - ${DEB} ${SIMDEB}|ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH}
|
|
|