]> git.proxmox.com Git - pve-http-server.git/blame - Makefile
buildsys: split packaging and source build-systems
[pve-http-server.git] / Makefile
CommitLineData
a9fc6893 1include /usr/share/dpkg/pkg-info.mk
a9fc6893 2
d8218001 3PACKAGE=libpve-http-server-perl
d8218001 4
a9fc6893
TL
5GITVERSION:=$(shell git rev-parse HEAD)
6BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
7
8DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
d8218001 9
5a554403 10all:
d8218001
DM
11
12.PHONY: deb
e4bce23e
WB
13deb: ${DEB}
14${DEB}:
a9fc6893 15 rm -rf ${BUILDDIR}
f8f97c8d
TL
16 cp -a src ${BUILDDIR}
17 cp -a debian ${BUILDDIR}/
a9fc6893
TL
18 echo "git clone git://git.proxmox.com/git/pve-http-server\\ngit checkout $(GITVERSION)" > $(BUILDDIR)/debian/SOURCE
19 cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
d8218001
DM
20 lintian ${DEB}
21
d8218001
DM
22.PHONY: upload
23upload: ${DEB}
3396e081 24 tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist buster
d8218001 25
584d34a7 26.PHONY: clean distclean
d8218001 27distclean: clean
f8f97c8d 28 ${MAKE} -C src $@
d8218001
DM
29
30clean:
f8f97c8d 31 ${MAKE} -C src $@
8a29f1fc 32 rm -rf ${PACKAGE}-*/ *.deb *.changes *.buildinfo ${BTDIR} examples/simple-demo.lck
d8218001
DM
33 find . -name '*~' -exec rm {} ';'
34
35.PHONY: dinstall
36dinstall: ${DEB}
37 dpkg -i ${DEB}