diff options
author | gdt <gdt> | 2003-12-03 17:24:27 +0000 |
---|---|---|
committer | gdt <gdt> | 2003-12-03 17:24:27 +0000 |
commit | d6b72f7ab1d33a43e1b6d5cd3410ac53e3bf74a9 (patch) | |
tree | e2b2a025757c52802bc12a4b6b8eec94d4bcdd79 /vtysh | |
parent | 6c110e700c21ef3d1d958da1df54261960d7ef07 (diff) |
Add support for --enable-exampledir to specify where to place example
files, defaulting to sysconfdir (matching previous behavior).
This is needed to support (cleanly) NetBSD pkgsrc, which requires that
example config files go in $(prefix)/share/examples/pkgname, rather
than in $(prefix)/etc/pkgname.
Diffstat (limited to 'vtysh')
-rw-r--r-- | vtysh/Makefile.am | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vtysh/Makefile.am b/vtysh/Makefile.am index b5f964e5..95f8f7f4 100644 --- a/vtysh/Makefile.am +++ b/vtysh/Makefile.am @@ -12,9 +12,10 @@ nodist_vtysh_SOURCES = vtysh_cmd.c noinst_HEADERS = vtysh.h vtysh_user.h vtysh_LDADD = ../lib/libzebra.a @LIBCAP@ -sysconf_DATA = vtysh.conf.sample +examplesdir = $(exampledir) +dist_examples_DATA = vtysh.conf.sample -EXTRA_DIST = extract.pl vtysh.conf.sample +EXTRA_DIST = extract.pl rebuild4: ./extract.pl $(top_srcdir)/zebra/*.c $(top_srcdir)/ripd/*.c $(top_srcdir)/ospfd/*.c $(top_srcdir)/bgpd/*.c $(top_srcdir)/lib/keychain.c $(top_srcdir)/lib/routemap.c $(top_srcdir)/lib/filter.c $(top_srcdir)/lib/plist.c $(top_srcdir)/lib/distribute.c $(top_srcdir)/lib/if_rmap.c > vtysh_cmd.c |