# Makefile.am for top level of netatalk package
-SUBDIRS = libatalk bin config etc man contrib
-# these later : distrib include
+if USE_BUILTIN_LIBEVENT
+SUBDIRS = libevent include libatalk bin config etc man contrib distrib doc macros test
+else
+SUBDIRS = include libatalk bin config etc man contrib distrib doc macros test
+endif
-EXTRA_DIST = BUGS CHANGES CONTRIBUTORS COPYRIGHT ChangeLog README README.ASUN TODO VERSION services.atalk
+EXTRA_DIST = CONTRIBUTORS COPYRIGHT COPYING NEWS VERSION
-bin_SCRIPTS = lp2pap.sh
+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