]> git.proxmox.com Git - libxdgmime-perl.git/blame - Makefile
buildsys: reorganize Makefile
[libxdgmime-perl.git] / Makefile
CommitLineData
5fb3d080
TL
1include /usr/share/dpkg/pkg-info.mk
2include /usr/share/dpkg/architecture.mk
3
b6f9e342 4PACKAGE=libxdgmime
5fb3d080
TL
5
6DEB = libxdgmime-perl_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb
b6f9e342 7BUILDSRC=${PACKAGE}-${DEB_VERSION_UPSTREAM}
5fb3d080 8
a1d229d1 9OPKGNAME=Xdgmime
fda2f5ea 10UPSTREAM=xdgmime-source/src
a1d229d1 11
b6f9e342
SI
12all: ${DEB}
13
14.PHONY: ${BUILDSRC}
15${BUILDSRC}:
16 -rm -rf ${BUILDSRC}
17 cp -a ${OPKGNAME} ${BUILDSRC}
18 cp -a ${UPSTREAM}/xdgmime*.[ch] ${BUILDSRC}/
19 perl -MDevel::PPPort -e 'Devel::PPPort::WriteFile("${BUILDSRC}/ppport.h");'
20 cp -a debian ${BUILDSRC}
21
22.PHONY: deb
23deb: ${DEB}
24${DEB}: ${OPKGNAME}/Xdgmime.xs ${BUILDSRC}
25 cd ${BUILDSRC}; dpkg-buildpackage -b -us -uc
a1d229d1
DM
26 lintian ${DEB}
27
90b3593d 28.PHONY: upload
a1d229d1 29upload: ${DEB}
90b3593d 30 tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist stretch
a1d229d1
DM
31
32
b6f9e342 33CLEANFILES = *~ debian/*~ *.deb ${BUILDSRC} libxdgmime-perl_*
a1d229d1 34
90b3593d 35.PHONY: clean
a1d229d1
DM
36clean:
37 rm -rf ${CLEANFILES}
90b3593d
DM
38
39.PHONY: dinstall
40dinstall: ${DEB}
41 dpkg -i ${DEB}