5
0
mirror of git://git.proxmox.com/git/pve-ha-manager.git synced 2025-01-07 21:18:00 +03:00
pve-ha-manager/Makefile

54 lines
1.4 KiB
Makefile
Raw Normal View History

include /usr/share/dpkg/pkg-info.mk
include /usr/share/dpkg/architecture.mk
2015-02-18 13:30:48 +03:00
PACKAGE=pve-ha-manager
2015-02-19 10:59:01 +03:00
SIMPACKAGE=pve-ha-simulator
2014-12-01 08:22:52 +03:00
GITVERSION:=$(shell git rev-parse HEAD)
BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
2015-02-18 13:30:48 +03:00
DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb
DBG_DEB=${PACKAGE}-dbgsym_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb
DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
SIMDEB=${SIMPACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
SIMDSC=${SIMPACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
2015-02-18 13:30:48 +03:00
2017-10-13 12:26:00 +03:00
all: deb
2015-02-18 13:30:48 +03:00
${BUILDDIR}:
rm -rf ${BUILDDIR}
rsync -a src/ debian ${BUILDDIR}
echo "git clone git://git.proxmox.com/git/pve-ha-manager.git\\ngit checkout ${GITVERSION}" > ${BUILDDIR}/debian/SOURCE
.PHONY: dinstall
2017-02-06 17:32:34 +03:00
dinstall: $(DEB) $(SIMDEB)
2015-02-19 10:59:01 +03:00
dpkg -i ${DEB} ${SIMDEB}
2015-02-18 13:30:48 +03:00
2017-02-06 17:32:34 +03:00
.PHONY: deb
2017-10-13 12:26:00 +03:00
deb: ${DEB} ${SIMDEB}
${DEB} ${DBG_DEB}: ${BUILDDIR}
cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
2015-02-18 13:30:48 +03:00
lintian ${DEB}
lintian ${SIMDEB}
2014-12-01 08:22:52 +03:00
.PHONY: dsc
dsc: ${DSC}
${DSC}: ${BUILDDIR}
cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d
lintian ${DSC}
2014-12-01 09:06:38 +03:00
.PHONY: clean
clean:
2015-03-12 14:20:18 +03:00
make -C src clean
rm -rf ${BUILDDIR} *.tar.gz *.dsc *.deb ${PACKAGE}-*.tar.gz *.changes *.buildinfo
2015-02-18 13:30:48 +03:00
find . -name '*~' -exec rm {} ';'
.PHONY: distclean
distclean: clean
2014-12-01 09:06:38 +03:00
2015-03-13 12:54:32 +03:00
.PHONY: upload
upload: ${DEB} ${SIMDEB}
tar cf - ${DEB} ${DBG_DEB} ${SIMDEB}|ssh repoman@repo.proxmox.com -- upload --product pve --dist bullseye --arch ${DEB_BUILD_ARCH}
2015-03-13 12:54:32 +03:00