ACLOCAL_AMFLAGS = -I config
-SUBDIRS = src etc scripts doc
-DIST_SUBDIRS = config src etc scripts doc
+SUBDIRS = src scripts doc
+DIST_SUBDIRS = config src scripts doc
EXTRA_DIST = autogen.sh lxc.spec CONTRIBUTING MAINTAINERS ChangeLog
pcdatadir = $(datadir)/pkgconfig
AM_CONDITIONAL([ENABLE_DOCBOOK], [test "x$have_docbook" = "xyes"])
+AC_ARG_ENABLE([examples],
+ [AC_HELP_STRING([--disable-examples], [do not install configuration examples])],
+ [], [enable_examples=yes])
+
+AM_CONDITIONAL([ENABLE_EXAMPLES], [test "x$enable_examples" = "xyes"])
+
AS_AC_EXPAND(PREFIX, $prefix)
AS_AC_EXPAND(LIBDIR, $libdir)
AS_AC_EXPAND(BINDIR, $bindir)
src/lxc/lxc-create
src/lxc/lxc-destroy
- etc/Makefile
- etc/lxc-macvlan.conf
- etc/lxc-no-netns.conf
- etc/lxc-empty-netns.conf
- etc/lxc-phys.conf
- etc/lxc-veth.conf
- etc/lxc-complex-config
+ doc/examples/Makefile
+ doc/examples/lxc-macvlan.conf
+ doc/examples/lxc-no-netns.conf
+ doc/examples/lxc-empty-netns.conf
+ doc/examples/lxc-phys.conf
+ doc/examples/lxc-veth.conf
+ doc/examples/lxc-complex-config
])
AC_CONFIG_COMMANDS([default],[[]],[[]])
AC_OUTPUT
-pkgsysconfdir = $(sysconfdir)/$(PACKAGE)
-pkgsysconf_DATA = \
+EXTRA_DIST = $(pkgexamples_DATA)
+
+if ENABLE_EXAMPLES
+pkgexamplesdir=$(docdir)/examples
+
+pkgexamples_DATA = \
lxc-macvlan.conf \
lxc-no-netns.conf \
lxc-empty-netns.conf \
lxc-phys.conf \
lxc-veth.conf \
lxc-complex-config
+endif
+
noinst_DATA = \
lxc-macvlan.conf.in \
lxc-empty-netns.conf.in \
-# Container with network a complex network mixing macvlan, veth and
+# Container with network a complex network mixing macvlan, veth and
# physical network devices
lxc.utsname = complex
lxc.network.type = veth