controllers: evpn : use frr restart if reload fail
[pve-network.git] / Makefile
CommitLineData
efe14cf0 1include /usr/share/dpkg/pkg-info.mk
0399edbb 2
efe14cf0 3PACKAGE=libpve-network-perl
0399edbb 4
efe14cf0 5BUILDDIR ?= ${PACKAGE}-${DEB_VERSION_UPSTREAM}
0399edbb 6
efe14cf0
TL
7DEB=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}_all.deb
8DSC=${PACKAGE}_${DEB_VERSION_UPSTREAM_REVISION}.dsc
f0d57613 9TARGZ=${PACKAGE}_${PKGVER}-${PKGREL}.tar.gz
0399edbb
AD
10
11all:
12 ${MAKE} -C PVE
13
14.PHONY: dinstall
15dinstall: deb
16 dpkg -i ${DEB}
17
18${BUILDDIR}: PVE debian
19 rm -rf ${BUILDDIR}
20 rsync -a * ${BUILDDIR}
21 echo "git clone git://git.proxmox.com/git/pve-network.git\\ngit checkout $(shell git rev-parse HEAD)" > ${BUILDDIR}/debian/SOURCE
22
23.PHONY: deb
24deb: ${DEB}
25${DEB}: ${BUILDDIR}
26 cd ${BUILDDIR}; dpkg-buildpackage -b -us -uc
27 lintian ${DEB}
28
29.PHONY: dsc
30dsc ${TARGZ}: ${DSC}
31${DSC}: ${BUILDDIR}
32 cd ${BUILDDIR}; dpkg-buildpackage -S -us -uc -d -nc
33 lintian ${DSC}
34
35.PHONY: clean distclean
36distclean: clean
37clean:
6109f3d8 38 rm -rf *~ *.deb *.changes ${PACKAGE}-* *.buildinfo *.dsc *.tar.gz
0399edbb 39
82f6b09f
AD
40.PHONY: test
41test:
42 $(MAKE) -C test
0399edbb
AD
43
44.PHONY: install
45install:
46 ${MAKE} -C PVE install
47
48.PHONY: upload
49upload: ${DEB}
c5582ba3 50 tar cf - ${DEB}|ssh -X repoman@repo.proxmox.com -- upload --product pve --dist bullseye
0399edbb 51