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)
2023-05-17 17:45:01 +02:00
BUILDDIR ?= $( PACKAGE) -$( DEB_VERSION_UPSTREAM)
2019-05-14 09:16:32 +00:00
2023-05-17 17:45:01 +02:00
DEB = $( PACKAGE) _$( DEB_VERSION_UPSTREAM_REVISION) _$( DEB_BUILD_ARCH) .deb
DBGDEB = $( PACKAGE) -dbgsym_$( DEB_VERSION_UPSTREAM_REVISION) _$( DEB_BUILD_ARCH) .deb
DEBS = $( DEB) $( DBGDEB)
2021-11-24 18:17:21 +01:00
2023-05-17 17:45:01 +02: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
2023-05-17 19:38:09 +02:00
deb : $( DEB )
$(DBGDEB) : $( DEB )
2019-05-14 09:16:32 +00:00
$(DEB) : $( BUILDDIR )
cd $( BUILDDIR) ; dpkg-buildpackage -b -us -uc
2023-05-17 19:38:09 +02:00
lintian $( DEBS)
2019-05-13 14:49:18 +02:00
2019-05-14 09:32:03 +00:00
.PHONY : dsc
2023-05-17 17:45:01 +02:00
dsc : $( DSC )
$(DSC) : $( BUILDDIR )
cd $( BUILDDIR) ; dpkg-buildpackage -S -us -uc -d
lintian $( DSC)
2019-05-14 09:32:03 +00:00
2023-05-17 17:47:57 +02:00
sbuild : $( DSC )
sbuild $( 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 :
2023-05-17 17:45:47 +02:00
rm -rf $( PACKAGE) -[ 0-9] */ *.deb *.buildinfo *.build *.changes *.dsc *.tar.*
2019-05-14 09:31:32 +00:00
.PHONY : upload
2023-05-17 17:50:46 +02:00
upload : UPLOAD_DIST ?= $( DEB_DISTRIBUTION )
2023-05-17 17:45:01 +02:00
upload : $( DEBS )
2023-05-17 17:50:46 +02:00
tar cf - $( DEBS) | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist $( UPLOAD_DIST) --arch $( DEB_BUILD_ARCH)