]> git.proxmox.com Git - libarchive-perl.git/blob - Makefile
Makefile: cleanup, add dinstall target
[libarchive-perl.git] / Makefile
1 RELEASE=4.0
2
3 # h2xs -Afn LibArchive
4 # h2xs -an LibArchive /usr/include/archive.h /usr/include/archive_entry.h
5 # perl Makefile.PL PREFIX=/usr
6
7 #OPKGNAME = libarchive-2.2.4
8 #DEB = libarchive1_2.2.4-1_i386.deb
9 #DEVDEB = libarchive-dev_2.2.4-1_i386.deb
10
11 PPSRC = LibArchive
12 DEB = libarchive-perl_3.2.1-1_amd64.deb
13
14 all: ${DEB}
15
16 ${DEB}: ${PPSRC}/LibArchive.xs
17 -rm -rf build
18 rsync -a --exclude .svn ${PPSRC}/ build/
19 cp -a debian build
20 cd build; dpkg-buildpackage -b -us -uc -rfakeroot
21 lintian ${DEB}
22
23 .phony: upload
24 upload: ${DEB}
25 tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist stretch
26
27 CLEANFILES = *~ build *.deb libarchive_* ${OPKGNAME} libarchive-perl_*
28
29 .phony: clean
30 clean:
31 rm -rf ${CLEANFILES}
32
33 .PHONY: dinstall
34 dinstall: ${DEB}
35 dpkg -i ${DEB}