daemon: create_reusable_socket: listen on IPv6 and IPv4
[pve-common.git] / Makefile
1 include /usr/share/dpkg/pkg-info.mk
2
3 PACKAGE=libpve-common-perl
4
5 ARCH=all
6
7 BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
8
9 DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_${ARCH}.deb
10 DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
11 TARGZ=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.tar.gz
12
13 all:
14 ${MAKE} -C src
15
16 .PHONY: dinstall
17 dinstall: deb
18 dpkg -i ${DEB}
19
20 ${BUILDDIR}: src debian test
21 rm -rf ${BUILDDIR} ${BUILDDIR}.tmp; mkdir ${BUILDDIR}.tmp
22 cp -a -t ${BUILDDIR}.tmp $^ Makefile
23 echo "git clone git://git.proxmox.com/git/pve-common.git\\ngit checkout $(shell git rev-parse HEAD)" > ${BUILDDIR}.tmp/debian/SOURCE
24 mv ${BUILDDIR}.tmp ${BUILDDIR}
25
26 .PHONY: deb
27 deb: ${DEB}
28 ${DEB}: ${BUILDDIR}
29 cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
30 lintian ${DEB}
31
32 .PHONY: dsc
33 dsc ${TARGZ}: ${DSC}
34 ${DSC}: ${BUILDDIR}
35 cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d -nc
36 lintian ${DSC}
37
38 .PHONY: clean distclean
39 distclean: clean
40 clean:
41 rm -rf *~ *.deb *.changes ${PACKAGE}-*/ *.buildinfo *.dsc *.tar.gz
42
43 .PHONY: check
44 check:
45 $(MAKE) -C test check
46
47 .PHONY: install
48 install:
49 ${MAKE} -C src install
50
51 .PHONY: upload
52 upload: ${DEB}
53 tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg --dist buster