]> git.proxmox.com Git - libxdgmime-perl.git/blame_incremental - Makefile
buildsys: read version from changelog
[libxdgmime-perl.git] / Makefile
... / ...
CommitLineData
1include /usr/share/dpkg/pkg-info.mk
2include /usr/share/dpkg/architecture.mk
3
4PACKAHE=libxdgmime
5
6DEB = libxdgmime-perl_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb
7
8OPKGNAME=Xdgmime
9
10${DEB}: ${OPKGNAME}/Xdgmime.xs
11 -rm -rf build
12 cp -a ${OPKGNAME} build
13 cp -a debian build
14 cd build; dpkg-buildpackage -b -us -uc -rfakeroot
15 lintian ${DEB}
16
17.PHONY: upload
18upload: ${DEB}
19 tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist stretch
20
21
22CLEANFILES = *~ debian/*~ *.deb build libxdgmime-perl_*
23
24.PHONY: clean
25clean:
26 rm -rf ${CLEANFILES}
27
28.PHONY: dinstall
29dinstall: ${DEB}
30 dpkg -i ${DEB}