Makefile: cleanup, add dinstall target

This commit is contained in:
Dietmar Maurer 2017-03-08 16:44:09 +01:00
parent f70b5a3c3f
commit eca488f97f

View File

@ -9,23 +9,27 @@ RELEASE=4.0
#DEVDEB = libarchive-dev_2.2.4-1_i386.deb
PPSRC = LibArchive
PDEB = libarchive-perl_3.2.1-1_amd64.deb
DEB = libarchive-perl_3.2.1-1_amd64.deb
all: ${PDEB}
all: ${DEB}
${PDEB}: ${PPSRC}/LibArchive.xs
${DEB}: ${PPSRC}/LibArchive.xs
-rm -rf build
rsync -a --exclude .svn ${PPSRC}/ build/
cp -a debian build
cd build; dpkg-buildpackage -b -us -uc -rfakeroot
lintian ${PDEB}
lintian ${DEB}
.phony: upload
upload: ${PDEB}
tar cf - ${PDEB} | ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist stretch
upload: ${DEB}
tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist stretch
CLEANFILES = *~ build *.deb libarchive_* ${OPKGNAME} libarchive-perl_*
.phony: clean
clean:
rm -rf ${CLEANFILES}
.PHONY: dinstall
dinstall: ${DEB}
dpkg -i ${DEB}