move libt2n.m4 into m4 directory to let autoreconf find it
[libt2n] / Makefile.am
index 1154b0a..4733f2c 100644 (file)
@@ -2,10 +2,19 @@
 # have all needed files, that a GNU package needs
 AUTOMAKE_OPTIONS = foreign 1.4
 
-SUBDIRS = src doc test
+SUBDIRS = src doc test examples codegen example-codegen
 
 # Install the pkg-config file:
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = libt2n.pc
 
 EXRA_DIST = COPYING COPYING.LIB
+
+if AUTOCHECK
+all: config.h
+       $(MAKE) $(AM_MAKEFLAGS) all-recursive
+       $(MAKE) $(AM_MAKEFLAGS) check
+endif
+
+m4datadir = $(datadir)/aclocal
+m4data_DATA = libt2n.m4