Use src/dst ports as configured in ike_cfg
[strongswan.git] / Makefile.am
index 575eb06..fcb2f2e 100644 (file)
@@ -1,15 +1,20 @@
-SUBDIRS = src
-EXTRA_DIST = Doxyfile.in testing CREDITS
+SUBDIRS = src testing
+
+if USE_SCRIPTS
+  SUBDIRS += scripts
+endif
+
+ACLOCAL_AMFLAGS = -I m4/config
+
+EXTRA_DIST = Doxyfile.in CREDITS
 CLEANFILES = apidoc Doxyfile
 
 Doxyfile :     Doxyfile.in
                sed \
                -e "s:\@PACKAGE_VERSION\@:$(PACKAGE_VERSION):" \
                -e "s:\@PACKAGE_NAME\@:$(PACKAGE_NAME):" \
 CLEANFILES = apidoc Doxyfile
 
 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
 
 apidoc :       Doxyfile
                doxygen
-
-dist-hook :
-               rm -rf `find $(distdir)/testing -name .svn`