summaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am42
1 files changed, 41 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 4d41ea9e5..e01ad84b4 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,4 +1,31 @@
-SUBDIRS = include libfreeswan libcrypto libstrongswan pluto whack charon stroke starter openac scepclient ipsec _updown _updown_espmark _copyright
+SUBDIRS = include
+
+if USE_FILE_CONFIG
+ SUBDIRS += libfreeswan starter ipsec _copyright
+endif
+
+if USE_LIBSTRONGSWAN
+ SUBDIRS += libstrongswan
+endif
+
+if USE_PLUTO
+ SUBDIRS += libcrypto pluto whack
+endif
+if USE_CHARON
+ SUBDIRS += charon
+endif
+
+if USE_STROKE
+ SUBDIRS += stroke
+endif
+
+if USE_PLUTO_OR_CHARON
+ SUBDIRS += _updown _updown_espmark
+endif
+
+if USE_TOOLS
+ SUBDIRS += openac scepclient
+endif
if USE_UML
SUBDIRS += dumm
@@ -8,3 +35,16 @@ if USE_MANAGER
SUBDIRS += manager
endif
+if USE_FILE_CONFIG
+install-exec-local :
+ mkdir -p -m 755 $(DESTDIR)$(confdir)/ipsec.d
+ mkdir -p -m 755 $(DESTDIR)$(confdir)/ipsec.d/cacerts
+ mkdir -p -m 755 $(DESTDIR)$(confdir)/ipsec.d/ocspcerts
+ mkdir -p -m 755 $(DESTDIR)$(confdir)/ipsec.d/certs
+ mkdir -p -m 755 $(DESTDIR)$(confdir)/ipsec.d/acerts
+ mkdir -p -m 755 $(DESTDIR)$(confdir)/ipsec.d/aacerts
+ mkdir -p -m 755 $(DESTDIR)$(confdir)/ipsec.d/crls
+ mkdir -p -m 755 $(DESTDIR)$(confdir)/ipsec.d/reqs
+ mkdir -p -m 700 $(DESTDIR)$(confdir)/ipsec.d/private
+endif
+