2019-05-22 19:11:29 +02:00
i n c l u d e / u s r / s h a r e / d p k g / p k g - i n f o . m k
i n c l u d e / u s r / s h a r e / d p k g / a r c h i t e c t u r e . m k
2015-02-18 11:30:48 +01:00
PACKAGE = pve-ha-manager
2015-02-19 08:59:01 +01:00
SIMPACKAGE = pve-ha-simulator
2014-12-01 06:22:52 +01:00
2018-02-07 10:32:27 +01:00
GITVERSION := $( shell git rev-parse HEAD)
2019-07-11 19:23:51 +02:00
BUILDDIR ?= ${ PACKAGE } -${ DEB_VERSION_UPSTREAM }
2015-02-18 11:30:48 +01:00
2019-05-22 19:11:29 +02:00
DEB = ${ PACKAGE } _${ 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 11:30:48 +01:00
2017-10-13 11:26:00 +02:00
all : deb
2015-02-18 11:30:48 +01:00
2019-03-30 18:59:36 +01: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
2018-09-28 12:48:48 +02:00
.PHONY : dinstall
2017-02-06 15:32:34 +01:00
dinstall : $( DEB ) $( SIMDEB )
2015-02-19 08:59:01 +01:00
dpkg -i ${ DEB } ${ SIMDEB }
2015-02-18 11:30:48 +01:00
2017-02-06 15:32:34 +01:00
.PHONY : deb
2017-10-13 11:26:00 +02:00
deb : ${DEB } ${SIMDEB }
2019-03-30 18:59:36 +01:00
${DEB} : ${BUILDDIR }
cd ${ BUILDDIR } ; dpkg-buildpackage -b -us -uc
2015-02-18 11:30:48 +01:00
lintian ${ DEB }
2018-10-10 13:55:05 +02:00
lintian ${ SIMDEB }
2014-12-01 06:22:52 +01:00
2019-03-30 18:59:36 +01:00
.PHONY : dsc
dsc : ${DSC }
${DSC} : ${BUILDDIR }
2019-05-22 19:11:29 +02:00
cd ${ BUILDDIR } ; dpkg-buildpackage -S -us -uc -d
2019-03-30 18:59:36 +01:00
lintian ${ DSC }
2014-12-01 07:06:38 +01:00
.PHONY : clean
2015-03-09 10:47:19 +01:00
clean :
2015-03-12 12:20:18 +01:00
make -C src clean
2019-03-30 19:17:03 +01:00
rm -rf ${ BUILDDIR } *.tar.gz *.dsc *.deb ${ PACKAGE } -*.tar.gz *.changes *.buildinfo
2015-02-18 11:30:48 +01:00
find . -name '*~' -exec rm { } ';'
.PHONY : distclean
distclean : clean
2014-12-01 07:06:38 +01:00
2015-03-13 10:54:32 +01:00
.PHONY : upload
upload : ${DEB } ${SIMDEB }
2019-05-23 18:18:16 +02:00
tar cf - ${ DEB } ${ SIMDEB } | ssh repoman@repo.proxmox.com -- upload --product pve --dist buster --arch ${ ARCH }
2015-03-13 10:54:32 +01:00