Skip to content

Commit bd35472

Browse files
committedSep 7, 2017
build: non-recursive watchfrr & tools
(also forgot to remove AC_SUBST(ISISD) earlier) Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
1 parent a7e5e20 commit bd35472

10 files changed

+74
-42
lines changed
 

‎Makefile.am

+7-10
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ examplesdir = $(exampledir)
1616

1717
bin_PROGRAMS =
1818
sbin_PROGRAMS =
19+
sbin_SCRIPTS =
1920
noinst_PROGRAMS =
2021
noinst_HEADERS =
2122
noinst_LIBRARIES =
@@ -35,8 +36,10 @@ $(AUTOMAKE_DUMMY)install-sbinPROGRAMS: install-libLTLIBRARIES
3536

3637
include lib/subdir.am
3738
include zebra/subdir.am
39+
include watchfrr/subdir.am
3840
include qpb/subdir.am
3941
include fpm/subdir.am
42+
include tools/subdir.am
4043

4144
include ripd/subdir.am
4245
include ripngd/subdir.am
@@ -52,13 +55,13 @@ include eigrpd/subdir.am
5255
SUBDIRS = . @LIBRFP@ @RFPTEST@ \
5356
@BGPD@ \
5457
@PIMD@ \
55-
@WATCHFRR@ @VTYSH@ @DOC@ \
56-
@SOLARIS@ tests tools
58+
@VTYSH@ @DOC@ \
59+
@SOLARIS@ tests
5760

5861
DIST_SUBDIRS = . bgpd \
59-
watchfrr vtysh doc tests \
62+
vtysh doc tests \
6063
solaris pimd bgpd/rfp-example/librfp \
61-
bgpd/rfp-example/rfptest tools \
64+
bgpd/rfp-example/rfptest \
6265
# end
6366

6467
if PKGSRC
@@ -100,12 +103,6 @@ EXTRA_DIST += \
100103
snapcraft/helpers \
101104
snapcraft/snap \
102105
\
103-
tools/multiple-bgpd.sh \
104-
tools/rrcheck.pl \
105-
tools/rrlookup.pl \
106-
tools/zc.pl \
107-
tools/zebra.el \
108-
\
109106
vtysh/Makefile.am \
110107
vtysh/Makefile.in \
111108
# end

‎configure.ac

+1-4
Original file line numberDiff line numberDiff line change
@@ -1337,8 +1337,6 @@ AC_SUBST(RFPTEST)
13371337
AC_SUBST(LIBRFP)
13381338
AC_SUBST(RFPINC)
13391339
AC_SUBST(BGPD)
1340-
AC_SUBST(WATCHFRR)
1341-
AC_SUBST(ISISD)
13421340
AC_SUBST(PIMD)
13431341
AC_SUBST(SOLARIS)
13441342
AC_SUBST(VTYSH)
@@ -1812,12 +1810,11 @@ AC_CACHE_VAL(ac_cv_htonl_works,
18121810
AC_MSG_RESULT($ac_cv_htonl_works)
18131811

18141812
AC_CONFIG_FILES([Makefile
1815-
bgpd/Makefile watchfrr/Makefile
1813+
bgpd/Makefile
18161814
vtysh/Makefile
18171815
doc/Makefile tests/Makefile
18181816
bgpd/rfp-example/rfptest/Makefile bgpd/rfp-example/librfp/Makefile
18191817
pimd/Makefile
1820-
tools/Makefile
18211818
redhat/frr.spec
18221819
snapcraft/snapcraft.yaml
18231820
lib/version.h

‎tools/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
!Makefile
12
.arch-inventory
23
.arch-ids
34

‎tools/Makefile

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
all: ALWAYS
2+
@echo please specify a target to build
3+
%: ALWAYS
4+
@$(MAKE) -s -C .. tools/$@
5+
6+
Makefile:
7+
#nothing
8+
ALWAYS:
9+
.PHONY: ALWAYS makefiles
10+
.SUFFIXES:

‎tools/Makefile.am

-16
This file was deleted.

‎tools/subdir.am

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#
2+
# tools
3+
#
4+
5+
noinst_PROGRAMS += tools/permutations
6+
sbin_PROGRAMS += tools/ssd
7+
sbin_SCRIPTS += \
8+
tools/frr-reload.py \
9+
tools/frr \
10+
# end
11+
12+
tools_permutations_SOURCES = tools/permutations.c
13+
tools_permutations_LDADD = lib/libfrr.la
14+
15+
tools_ssd_SOURCES = tools/start-stop-daemon.c
16+
17+
EXTRA_DIST += \
18+
tools/etc \
19+
tools/frr \
20+
tools/frr-reload.py \
21+
tools/frr.service \
22+
tools/multiple-bgpd.sh \
23+
tools/rrcheck.pl \
24+
tools/rrlookup.pl \
25+
tools/zc.pl \
26+
tools/zebra.el \
27+
# end

‎watchfrr/.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Makefile
1+
!Makefile
22
Makefile.in
33
*.o
44
watchfrr

‎watchfrr/Makefile

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
all: ALWAYS
2+
@$(MAKE) -s -C .. watchfrr/watchfrr
3+
%: ALWAYS
4+
@$(MAKE) -s -C .. watchfrr/$@
5+
6+
Makefile:
7+
#nothing
8+
ALWAYS:
9+
.PHONY: ALWAYS makefiles
10+
.SUFFIXES:

‎watchfrr/Makefile.am

-11
This file was deleted.

‎watchfrr/subdir.am

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#
2+
# watchfrr
3+
#
4+
5+
if WATCHFRR
6+
sbin_PROGRAMS += watchfrr/watchfrr
7+
endif
8+
9+
noinst_HEADERS += \
10+
watchfrr/watchfrr.h \
11+
# end
12+
13+
watchfrr_watchfrr_LDADD = lib/libfrr.la @LIBCAP@
14+
watchfrr_watchfrr_SOURCES = \
15+
watchfrr/watchfrr.c \
16+
watchfrr/watchfrr_vty.c \
17+
# end

0 commit comments

Comments
 (0)
Please sign in to comment.