Correctly check buffer length in netlink_add_attribute()
[strongswan.git] / Makefile.am
index 95eb8d9..8a558c1 100644 (file)
@@ -1,15 +1,35 @@
-SUBDIRS = src testing scripts
-EXTRA_DIST = Doxyfile.in CREDITS
-CLEANFILES = apidoc Doxyfile
+SUBDIRS = src man init testing
+
+if USE_SCRIPTS
+  SUBDIRS += scripts
+endif
+
+ACLOCAL_AMFLAGS = -I m4/config
+
+EXTRA_DIST = Doxyfile.in LICENSE Android.common.mk.in Android.common.mk Android.mk
+CLEANFILES = Doxyfile
+BUILT_SOURCES = Android.common.mk
+MAINTAINERCLEANFILES = Android.common.mk
+
+if USE_DEV_HEADERS
+config_includedir = $(ipseclibdir)/include
+nodist_config_include_HEADERS = config.h
+endif
+
+Android.common.mk :    Android.common.mk.in configure.in
+               sed \
+               -e "s:\@PACKAGE_VERSION\@:$(PACKAGE_VERSION):" \
+               $(srcdir)/$@.in > $@
 
 Doxyfile :     Doxyfile.in
                sed \
                -e "s:\@PACKAGE_VERSION\@:$(PACKAGE_VERSION):" \
                -e "s:\@PACKAGE_NAME\@:$(PACKAGE_NAME):" \
+               -e "s:\@SRC_DIR\@:$(srcdir):" \
                $(srcdir)/$@.in > $@
 
 apidoc :       Doxyfile
                doxygen
 
-dist-hook :
-               rm -rf `find $(distdir)/testing -name .svn`
+clean-local:
+               rm -rf apidoc