Proper dependency handling in Libt2n.cmake by using only one add_custom_command for...
[libt2n] / Makefile.am
index d030409..c19d144 100644 (file)
@@ -1,5 +1,23 @@
 # not a GNU package. You can remove this line, if
 # have all needed files, that a GNU package needs
 AUTOMAKE_OPTIONS = foreign 1.4
+ACLOCAL_AMFLAGS = -I m4
 
-SUBDIRS = src doc
+SUBDIRS = src doc test examples codegen examples-codegen
+
+# Install the pkg-config file:
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = libt2n.pc
+
+if AUTOCHECK
+all: config.h
+       $(MAKE) $(AM_MAKEFLAGS) all-recursive
+       $(MAKE) $(AM_MAKEFLAGS) check
+endif
+
+m4datadir = $(datadir)/aclocal
+m4data_DATA = libt2n.m4
+
+bin_SCRIPTS = libt2n-gccxml.sh
+
+EXTRA_DIST = AUTHORS ChangeLog LICENSE COPYING.GPL $(m4data_DATA) test-build-install-use libt2n-gccxml.sh