2023-05-21 10:53:20 +02:00
i n c l u d e / u s r / s h a r e / d p k g / d e f a u l t . m k
2019-05-21 18:50:10 +02:00
2011-08-23 07:27:48 +02:00
PACKAGE = libpve-access-control
2023-05-21 10:52:58 +02:00
DEB = $( PACKAGE) _$( DEB_VERSION_UPSTREAM_REVISION) _all.deb
DSC = $( PACKAGE) _$( DEB_VERSION_UPSTREAM_REVISION) .dsc
2019-05-21 18:50:10 +02:00
2023-05-21 10:52:58 +02:00
BUILDDIR ?= $( PACKAGE) -$( DEB_VERSION_UPSTREAM)
2019-04-02 11:36:13 +02:00
2020-04-15 20:04:54 +02:00
GITVERSION := $( shell git rev-parse HEAD)
2013-09-02 10:32:39 +02:00
2017-06-09 17:44:29 +02:00
all :
2011-08-23 07:27:48 +02:00
.PHONY : dinstall
dinstall : deb
2023-05-21 10:52:58 +02:00
dpkg -i $( DEB)
2011-08-23 07:27:48 +02:00
2023-05-21 10:52:58 +02:00
$(BUILDDIR) :
rm -rf $( BUILDDIR)
cp -a src $( BUILDDIR)
cp -a debian $( BUILDDIR) /
echo " git clone git://git.proxmox.com/git/pve-access-control.git\\ngit checkout $( GITVERSION) " > $( BUILDDIR) /debian/SOURCE
2019-04-02 11:36:13 +02:00
2017-02-06 11:46:12 +01:00
.PHONY : deb
2023-05-21 10:52:58 +02:00
deb : $( DEB )
$(DEB) : $( BUILDDIR )
cd $( BUILDDIR) ; dpkg-buildpackage -b -us -uc
lintian $( DEB)
2011-08-23 07:27:48 +02:00
2019-04-02 11:36:13 +02:00
.PHONY : dsc
2023-05-21 10:52:58 +02:00
dsc : $( DSC )
$(DSC) : $( BUILDDIR )
cd $( BUILDDIR) ; dpkg-buildpackage -S -us -uc -d
lintian $( DSC)
2019-04-02 11:36:13 +02:00
2023-05-21 12:06:06 +02:00
sbuild : $( DSC )
sbuild $( DSC)
2011-08-23 07:27:48 +02:00
.PHONY : upload
2023-05-21 11:19:16 +02:00
upload : UPLOAD_DIST ?= $( DEB_DISTRIBUTION )
2023-05-21 10:52:58 +02:00
upload : $( DEB )
2023-05-21 11:19:16 +02:00
tar cf - $( DEB) | ssh repoman@repo.proxmox.com -- upload --product pve --dist $( UPLOAD_DIST)
2011-08-23 07:27:48 +02:00
2023-05-21 12:05:12 +02:00
.PHONY : clean distclean
2011-08-23 07:27:48 +02:00
distclean : clean
2023-05-21 12:05:12 +02:00
clean :
rm -rf $( PACKAGE) -[ 0-9] */
rm -f *.dsc *.deb *.buildinfo *.build *.changes $( PACKAGE) *.tar.*