2019-05-14 09:15:37 +00: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
2019-05-14 09:11:44 +00:00
PACKAGE := proxmox-mini-journalreader
2019-05-13 14:49:18 +02:00
GITVERSION := $( shell git rev-parse HEAD)
2019-05-14 09:16:32 +00:00
BUILDDIR ?= ${ PACKAGE } -${ DEB_VERSION_UPSTREAM }
2019-05-14 09:15:37 +00:00
DEB = ${ PACKAGE } _${ DEB_VERSION_UPSTREAM_REVISION } _${ DEB_BUILD_ARCH } .deb
2019-05-14 09:31:32 +00:00
DBGDEB = ${ PACKAGE } -dbgsym_${ DEB_VERSION_UPSTREAM_REVISION } _${ DEB_BUILD_ARCH } .deb
2019-05-14 09:32:03 +00:00
DSC = ${ PACKAGE } _${ DEB_VERSION_UPSTREAM_REVISION } .dsc
2019-05-13 14:49:18 +02:00
2019-05-14 08:27:07 +00:00
all : $( DEB )
2019-05-14 09:16:32 +00:00
$(BUILDDIR) : src debian
rm -rf $( BUILDDIR)
rsync -a src/ debian $( BUILDDIR)
echo " git clone git://git.proxmox.com/git/proxmox-mini-journal\\ngit checkout $( GITVERSION) " > $( BUILDDIR) /debian/SOURCE
2019-05-13 14:49:18 +02:00
.PHONY : deb
deb : $( DEB )
2019-05-14 09:16:32 +00:00
$(DEB) : $( BUILDDIR )
cd $( BUILDDIR) ; dpkg-buildpackage -b -us -uc
2019-05-13 14:49:18 +02:00
lintian $( DEB)
2019-05-14 09:32:03 +00:00
.PHONY : dsc
dsc : ${DSC }
${DSC} : ${BUILDDIR }
cd ${ BUILDDIR } ; dpkg-buildpackage -S -us -uc -d
lintian ${ DSC }
2019-05-14 08:27:20 +00:00
dinstall : $( DEB )
dpkg -i $( DEB)
2019-05-13 14:49:18 +02:00
.PHONY : clean
clean :
2019-05-14 09:32:03 +00:00
rm -rf $( BUILDDIR) *.deb *.buildinfo *.changes *.dsc *.tar.gz
2019-05-14 09:31:32 +00:00
.PHONY : upload
upload : ${DEB }
2021-11-24 18:12:03 +01:00
tar cf - ${ DEB } | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist bullseye --arch ${ DEB_BUILD_ARCH }