# Makefile.am for top level of netatalk package
-SUBDIRS = libatalk bin config etc man contrib distrib include sys doc macros test
+if USE_BUILTIN_LIBEVENT
+SUBDIRS = libevent include libatalk bin config etc contrib distrib doc man macros test
+else
+SUBDIRS = include libatalk bin config etc contrib distrib doc man macros test
+endif
-EXTRA_DIST = CONTRIBUTORS COPYRIGHT COPYING NEWS VERSION services.atalk
+EXTRA_DIST = CONTRIBUTORS COPYRIGHT COPYING NEWS VERSION
ACLOCAL_AMFLAGS = -I macros
AUTOMAKE_OPTIONS = foreign
+if RUN_LDCONFIG
+install-exec-hook:
+ @printf "Running ldconfig to ensure libraries installed in system library directories are added to the dynamic linker cache ... "
+ @-@NETA_LDCONFIG@
+ @printf "done\n"
+endif