Skip to content

Commit

Permalink
build: non-recursive auxiliary directories
Browse files Browse the repository at this point in the history
Flatten {m4,pkgsrc,python,redhat,snapcraft}/Makefile.am into the main
one.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
  • Loading branch information
eqvinox committed Jul 31, 2017
1 parent a805d3b commit 53d93be
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 36 deletions.
59 changes: 51 additions & 8 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,63 @@ include fpm/subdir.am
SUBDIRS = . @LIBRFP@ @RFPTEST@ \
@BGPD@ @RIPD@ @RIPNGD@ @OSPFD@ @OSPF6D@ @LDPD@ \
@ISISD@ @PIMD@ @NHRPD@ @EIGRPD@ @BABELD@ \
@WATCHFRR@ @VTYSH@ @OSPFCLIENT@ @DOC@ m4 @pkgsrcdir@ \
redhat @SOLARIS@ tests tools snapcraft
@WATCHFRR@ @VTYSH@ @OSPFCLIENT@ @DOC@ \
@SOLARIS@ tests tools

DIST_SUBDIRS = . bgpd ripd ripngd ospfd ospf6d ldpd \
isisd watchfrr vtysh ospfclient doc m4 pkgsrc redhat tests \
isisd watchfrr vtysh ospfclient doc tests \
solaris pimd nhrpd eigrpd bgpd/rfp-example/librfp \
bgpd/rfp-example/rfptest tools snapcraft babeld python \
bgpd/rfp-example/rfptest tools babeld \
# end

EXTRA_DIST += aclocal.m4 SERVICES REPORTING-BUGS \
if PKGSRC
rcdir=@pkgsrcrcdir@
rc_SCRIPTS = \
pkgsrc/bgpd.sh \
pkgsrc/ospf6d.sh \
pkgsrc/ospfd.sh \
pkgsrc/ripd.sh \
pkgsrc/ripngd.sh \
pkgsrc/zebra.sh \
# end
endif

EXTRA_DIST += \
REPORTING-BUGS \
SERVICES \
aclocal.m4 \
update-autotools \
vtysh/Makefile.in vtysh/Makefile.am \
tools/rrcheck.pl tools/rrlookup.pl tools/zc.pl \
tools/zebra.el tools/multiple-bgpd.sh
m4/README.txt \
\
python/clidef.py \
python/clippy/__init__.py \
\
redhat/frr.init \
redhat/frr.service \
redhat/daemons \
redhat/frr.logrotate \
redhat/frr.pam \
redhat/frr.spec \
redhat/README.rpm_build.md \
\
snapcraft/snapcraft.yaml \
snapcraft/README.snap_build.md \
snapcraft/README.usage.md \
snapcraft/extra_version_info.txt \
snapcraft/scripts \
snapcraft/defaults \
snapcraft/helpers \
snapcraft/snap \
\
tools/multiple-bgpd.sh \
tools/rrcheck.pl \
tools/rrlookup.pl \
tools/zc.pl \
tools/zebra.el \
\
vtysh/Makefile.am \
vtysh/Makefile.in \
# end

ACLOCAL_AMFLAGS = -I m4

Expand Down
11 changes: 3 additions & 8 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,13 @@ AC_SUBST(exampledir)

dnl default is to match previous behavior
pkgsrcrcdir=""
pkgsrcdir=""
AC_ARG_ENABLE([pkgsrcrcdir],
AS_HELP_STRING([--enable-pkgsrcrcdir],
[specify directory for rc.d scripts]),
pkgsrcrcdir="$enableval"; pkgsrcdir="pkgsrc",)
pkgsrcrcdir="$enableval",)
dnl XXX add --pkgsrcrcdir to autoconf standard directory list somehow
AC_SUBST(pkgsrcdir)
AC_SUBST(pkgsrcrcdir)
AM_CONDITIONAL([PKGSRC], [test "x$pkgsrcrcdir" != "x"])

AC_ARG_WITH([moduledir], [AS_HELP_STRING([--with-moduledir=DIR], [module directory (${libdir}/frr/modules)])], [
moduledir="$withval"
Expand Down Expand Up @@ -1823,18 +1822,14 @@ AC_MSG_RESULT($ac_cv_htonl_works)
AC_CONFIG_FILES([Makefile ripd/Makefile
ripngd/Makefile bgpd/Makefile ospfd/Makefile watchfrr/Makefile
ospf6d/Makefile ldpd/Makefile isisd/Makefile vtysh/Makefile
doc/Makefile ospfclient/Makefile tests/Makefile m4/Makefile
doc/Makefile ospfclient/Makefile tests/Makefile
bgpd/rfp-example/rfptest/Makefile bgpd/rfp-example/librfp/Makefile
babeld/Makefile
pimd/Makefile
eigrpd/Makefile
nhrpd/Makefile
redhat/Makefile
tools/Makefile
pkgsrc/Makefile
python/Makefile
redhat/frr.spec
snapcraft/Makefile
snapcraft/snapcraft.yaml
lib/version.h
tests/lib/cli/test_cli.refout
Expand Down
1 change: 0 additions & 1 deletion m4/Makefile.am

This file was deleted.

3 changes: 0 additions & 3 deletions pkgsrc/Makefile.am

This file was deleted.

3 changes: 0 additions & 3 deletions python/Makefile.am

This file was deleted.

5 changes: 0 additions & 5 deletions redhat/Makefile.am

This file was deleted.

8 changes: 0 additions & 8 deletions snapcraft/Makefile.am

This file was deleted.

0 comments on commit 53d93be

Please sign in to comment.