-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (30 loc) · 972 Bytes
/
Makefile
File metadata and controls
39 lines (30 loc) · 972 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
all:
$(MAKE) -C src
# $(MAKE) -C doc
clean:
$(MAKE) -C src clean
$(MAKE) -C test clean
.PHONY: debian test rpm
debian:
dpkg-buildpackage -b --no-sign
# Note: builddeps must be run as root since it installs the dependencies
# needed to build the package
debian-builddeps:
sudo apt update
sudo DEBIAN_FRONTEND=noninteractive apt -y install devscripts equivs
sudo DEBIAN_FRONTEND=noninteractive mk-build-deps --install \
debian/control --remove \
--tool='apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --yes'
sudo rm -f *.buildinfo *.changes
clean-debian:
dpkg-buildpackage -rfakeroot -Tclean
# lint on debian package
lintian:
lintian --no-tag-display-limit --suppress-tags dir-or-file-in-opt \
--suppress-tags repeated-path-segment --verbose --info --pedantic
rpm:
rpmbuild --define "_topdir `pwd`/rpm" -bb rpm/mrt-tools.spec
test: all
$(MAKE) -C test
install: all
install -m 755 src/bgp-explain /usr/local/bin/bgp-explain