2017-07-07 10:45:06 +03:00
RELEASE = 5.0
2015-05-06 12:45:10 +03:00
2015-09-18 17:18:54 +03:00
VERSION = 1.6
2015-05-06 12:45:10 +03:00
PACKAGE = pve-zsync
2018-06-05 16:28:52 +03:00
PKGREL = 16
2015-05-06 12:45:10 +03:00
DESTDIR =
2018-06-06 09:20:47 +03:00
SBINDIR = ${ DESTDIR } /usr/sbin
MAN8DIR = ${ DESTDIR } /usr/share/man/man8
DOCDIR = ${ DESTDIR } /usr/share/doc/${ PACKAGE }
WORKDIR = ${ DESTDIR } /var/lib/pve-zsync
BUILDDIR = build
2015-05-06 12:45:10 +03:00
ARCH = all
2018-06-06 09:20:47 +03:00
GITVERSION := $( shell git rev-parse HEAD)
2015-05-06 12:45:10 +03:00
DEB = ${ PACKAGE } _${ VERSION } -${ PKGREL } _${ ARCH } .deb
2018-06-06 09:20:47 +03:00
all :
2015-05-06 12:45:10 +03:00
.PHONY : dinstall
dinstall : deb
dpkg -i ${ DEB }
2018-06-06 09:20:47 +03:00
pve-zsync.8 : pve -zsync
./pve-zsync printpod | pod2man -c "Proxmox Documentation" -s 8 -r ${ RELEASE } -n pve-zsync - pve-zsync.8
2015-05-06 12:45:10 +03:00
.PHONY : install
2018-06-06 09:20:47 +03:00
install : pve -zsync .8
install -d ${ SBINDIR }
install -m 0755 pve-zsync ${ SBINDIR } /pve-zsync
install -d ${ WORKDIR }
install -d ${ MAN8DIR }
install -m 0644 pve-zsync.8 ${ MAN8DIR } /pve-zsync.8
install -d ${ DOCDIR }
echo " git clone git://git.proxmox.com/git/pve-zsync.git\\ngit checkout ${ GITVERSION } " > ${ DOCDIR } /SOURCE
2015-05-06 12:45:10 +03:00
2017-02-13 16:27:50 +03:00
.PHONY : deb
deb : ${DEB }
${DEB} :
2018-06-06 09:20:47 +03:00
rm -rf ${ BUILDDIR }
rsync -a * build
cd build; dpkg-buildpackage -b -us -uc
2017-02-13 16:28:15 +03:00
lintian ${ DEB }
2015-05-06 12:45:10 +03:00
.PHONY : clean
clean :
2018-06-06 09:20:47 +03:00
rm -rf ${ BUILDDIR } *.deb *.buildinfo *.changes
2015-05-06 12:45:10 +03:00
find . -name '*~' -exec rm { } ';'
.PHONY : distclean
distclean : clean
.PHONY : upload
upload : ${DEB }
2018-06-05 17:03:38 +03:00
tar cf - ${ DEB } | ssh repoman@repo.proxmox.com upload --product pve --dist stretch