Merged silc_1_0_branch to trunk.
[silc.git] / lib / Makefile.ad
index 5e12f56ba69bf304f692390b0e9535f5ce553026..4e1d1ca1d7112ee57dea2a52f4d6e652a89c0be7 100644 (file)
@@ -28,9 +28,11 @@ SILCLIB_DIRS = \
 #ifdef SILC_DIST_MATH
        silcmath \
 #endif SILC_DIST_MATH
+#ifdef SILC_DIST_SFTP
+       silcsftp \
+#endif SILC_DIST_SFTP
        silcske \
-       silcutil \
-       silcsftp
+       silcutil
 
 SILCLIB = libsilc.a
 
@@ -106,6 +108,20 @@ libsilcclient.a:
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = silc.pc silcclient.pc
 
-EXTRA_DIST = doc silc.pc.in silcclient.pc.in
+EXTRA_DIST = silc.pc.in silcclient.pc.in
 #endif SILC_DIST_TOOLKIT
 
+#ifdef SILC_DIST_TOOLKIT
+toolkit-install:
+       -mkdir -p $(docdir)/toolkit/
+       -$(INSTALL_DATA) $(top_srcdir)/doc/toolkit/* $(docdir)/toolkit
+       -$(INSTALL_DATA) $(top_srcdir)/lib/doc/*.gif $(docdir)/toolkit
+       -cp -R $(top_srcdir)/tutorial $(docdir)
+#endif SILC_DIST_TOOLKIT
+
+install-data-hook:     \
+#ifdef SILC_DIST_TOOLKIT
+       toolkit-install
+#endif SILC_DIST_TOOLKIT
+
+include $(top_srcdir)/Makefile.defines.in