]> git.proxmox.com Git - libxdgmime-perl.git/blame - Makefile
d/s/format: mark package as native
[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 12all: ${DEB}
f05aec34
SI
13.PHONY: update-bindings
14update-bindings:
15 cp -a ${UPSTREAM}/xdgmime*.[ch] ${OPKGNAME}/
16 h2xs -P -v ${DEB_VERSION_UPSTREAM} -F -DHAVE_MMAP -M '^XDG_' -t PV -Ofan Xdgmime xdgmime.h
17 rm -f ${OPKGNAME}/xdgmime*.[ch]
18 echo "Please manually check and add the diff of the automatically generated update"
b6f9e342
SI
19
20.PHONY: ${BUILDSRC}
21${BUILDSRC}:
22 -rm -rf ${BUILDSRC}
23 cp -a ${OPKGNAME} ${BUILDSRC}
24 cp -a ${UPSTREAM}/xdgmime*.[ch] ${BUILDSRC}/
25 perl -MDevel::PPPort -e 'Devel::PPPort::WriteFile("${BUILDSRC}/ppport.h");'
26 cp -a debian ${BUILDSRC}
27
28.PHONY: deb
29deb: ${DEB}
30${DEB}: ${OPKGNAME}/Xdgmime.xs ${BUILDSRC}
31 cd ${BUILDSRC}; dpkg-buildpackage -b -us -uc
a1d229d1
DM
32 lintian ${DEB}
33
90b3593d 34.PHONY: upload
a1d229d1 35upload: ${DEB}
90b3593d 36 tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist stretch
a1d229d1
DM
37
38
b6f9e342 39CLEANFILES = *~ debian/*~ *.deb ${BUILDSRC} libxdgmime-perl_*
a1d229d1 40
90b3593d 41.PHONY: clean
a1d229d1
DM
42clean:
43 rm -rf ${CLEANFILES}
90b3593d
DM
44
45.PHONY: dinstall
46dinstall: ${DEB}
47 dpkg -i ${DEB}