mirror of
git://git.proxmox.com/git/pve-ha-manager.git
synced 2025-01-07 21:18:00 +03:00
58 lines
1.3 KiB
Makefile
58 lines
1.3 KiB
Makefile
RELEASE=4.2
|
|
|
|
VERSION=1.0
|
|
PACKAGE=pve-ha-manager
|
|
SIMPACKAGE=pve-ha-simulator
|
|
PKGREL=34
|
|
|
|
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} ${SIMDEB}
|
|
|
|
.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 ${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
|
|
find . -name '*~' -exec rm {} ';'
|
|
|
|
.PHONY: distclean
|
|
distclean: clean
|
|
|
|
.PHONY: upload
|
|
upload: ${DEB} ${SIMDEB}
|
|
tar cf - ${DEB} ${SIMDEB}|ssh repoman@repo.proxmox.com upload
|
|
|