build: non-recursive auxiliary directories

Flatten {m4,pkgsrc,python,redhat,snapcraft}/Makefile.am into the main
one.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
David Lamparter 2017-07-31 22:05:56 +02:00
parent a805d3bbb1
commit 53d93be147
7 changed files with 54 additions and 36 deletions

View file

@ -32,20 +32,63 @@ include fpm/subdir.am
SUBDIRS = . @LIBRFP@ @RFPTEST@ \ SUBDIRS = . @LIBRFP@ @RFPTEST@ \
@BGPD@ @RIPD@ @RIPNGD@ @OSPFD@ @OSPF6D@ @LDPD@ \ @BGPD@ @RIPD@ @RIPNGD@ @OSPFD@ @OSPF6D@ @LDPD@ \
@ISISD@ @PIMD@ @NHRPD@ @EIGRPD@ @BABELD@ \ @ISISD@ @PIMD@ @NHRPD@ @EIGRPD@ @BABELD@ \
@WATCHFRR@ @VTYSH@ @OSPFCLIENT@ @DOC@ m4 @pkgsrcdir@ \ @WATCHFRR@ @VTYSH@ @OSPFCLIENT@ @DOC@ \
redhat @SOLARIS@ tests tools snapcraft @SOLARIS@ tests tools
DIST_SUBDIRS = . bgpd ripd ripngd ospfd ospf6d ldpd \ 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 \ solaris pimd nhrpd eigrpd bgpd/rfp-example/librfp \
bgpd/rfp-example/rfptest tools snapcraft babeld python \ bgpd/rfp-example/rfptest tools babeld \
# end # 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 \ update-autotools \
vtysh/Makefile.in vtysh/Makefile.am \ m4/README.txt \
tools/rrcheck.pl tools/rrlookup.pl tools/zc.pl \ \
tools/zebra.el tools/multiple-bgpd.sh 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 ACLOCAL_AMFLAGS = -I m4

View file

@ -75,14 +75,13 @@ AC_SUBST(exampledir)
dnl default is to match previous behavior dnl default is to match previous behavior
pkgsrcrcdir="" pkgsrcrcdir=""
pkgsrcdir=""
AC_ARG_ENABLE([pkgsrcrcdir], AC_ARG_ENABLE([pkgsrcrcdir],
AS_HELP_STRING([--enable-pkgsrcrcdir], AS_HELP_STRING([--enable-pkgsrcrcdir],
[specify directory for rc.d scripts]), [specify directory for rc.d scripts]),
pkgsrcrcdir="$enableval"; pkgsrcdir="pkgsrc",) pkgsrcrcdir="$enableval",)
dnl XXX add --pkgsrcrcdir to autoconf standard directory list somehow dnl XXX add --pkgsrcrcdir to autoconf standard directory list somehow
AC_SUBST(pkgsrcdir)
AC_SUBST(pkgsrcrcdir) 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)])], [ AC_ARG_WITH([moduledir], [AS_HELP_STRING([--with-moduledir=DIR], [module directory (${libdir}/frr/modules)])], [
moduledir="$withval" moduledir="$withval"
@ -1823,18 +1822,14 @@ AC_MSG_RESULT($ac_cv_htonl_works)
AC_CONFIG_FILES([Makefile ripd/Makefile AC_CONFIG_FILES([Makefile ripd/Makefile
ripngd/Makefile bgpd/Makefile ospfd/Makefile watchfrr/Makefile ripngd/Makefile bgpd/Makefile ospfd/Makefile watchfrr/Makefile
ospf6d/Makefile ldpd/Makefile isisd/Makefile vtysh/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 bgpd/rfp-example/rfptest/Makefile bgpd/rfp-example/librfp/Makefile
babeld/Makefile babeld/Makefile
pimd/Makefile pimd/Makefile
eigrpd/Makefile eigrpd/Makefile
nhrpd/Makefile nhrpd/Makefile
redhat/Makefile
tools/Makefile tools/Makefile
pkgsrc/Makefile
python/Makefile
redhat/frr.spec redhat/frr.spec
snapcraft/Makefile
snapcraft/snapcraft.yaml snapcraft/snapcraft.yaml
lib/version.h lib/version.h
tests/lib/cli/test_cli.refout tests/lib/cli/test_cli.refout

View file

@ -1 +0,0 @@
EXTRA_DIST=Makefile.am README.txt

View file

@ -1,3 +0,0 @@
rcdir=@pkgsrcrcdir@
rc_SCRIPTS = bgpd.sh ospf6d.sh ospfd.sh ripd.sh ripngd.sh zebra.sh

View file

@ -1,3 +0,0 @@
EXTRA_DIST = \
clidef.py \
clippy/__init__.py

View file

@ -1,5 +0,0 @@
EXTRA_DIST = frr.init frr.service daemons \
frr.logrotate frr.pam frr.spec \
README.rpm_build.md

View file

@ -1,8 +0,0 @@
EXTRA_DIST = snapcraft.yaml \
README.snap_build.md \
README.usage.md \
extra_version_info.txt \
scripts \
defaults \
helpers \
snap