]> git.proxmox.com Git - libarchive-perl.git/commitdiff
Makefile: cleanup, add dinstall target
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 8 Mar 2017 15:44:09 +0000 (16:44 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 8 Mar 2017 15:44:20 +0000 (16:44 +0100)
Makefile

index c511096ba837e2c460bd561a339263708e94ef03..485cf02e6c8ff391b936044e2d07fe2a4a98ec79 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -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}