Use _GNU_SOURCE on Linux systems.
[silc.git] / doc / Makefile.ad
index f6c1b5f3377c8d90c3a067c668e7874d0b1f6c33..1818fc1c479d62f96360dfd5f83e7d60a0680c53 100644 (file)
@@ -3,7 +3,7 @@
 #
 #  Author: Pekka Riikonen <priikone@silcnet.org>
 #
-#  Copyright (C) 2000 - 2005 Pekka Riikonen
+#  Copyright (C) 2000 - 2007 Pekka Riikonen
 #
 #  This program is free software; you can redistribute it and/or modify
 #  it under the terms of the GNU General Public License as published by
 
 AUTOMAKE_OPTIONS = 1.0 no-dependencies foreign
 
+#ifdef SILC_DIST_TOOLKIT
 all:
-       touch draft-riikonen-silc-spec-08.txt
+       touch draft-riikonen-silc-spec-09.txt
        touch draft-riikonen-silc-pp-09.txt
-       touch draft-riikonen-silc-ke-auth-08.txt
-       touch draft-riikonen-silc-commands-06.txt
+       touch draft-riikonen-silc-ke-auth-09.txt
+       touch draft-riikonen-silc-commands-07.txt
        touch draft-riikonen-silc-flags-payloads-04.txt
-       touch draft-riikonen-presence-attrs-03.txt
+       touch draft-riikonen-silc-multimedia-session-00.txt
+       touch draft-riikonen-presence-attrs-04.txt
 
-#ifdef SILC_DIST_TOOLKIT
 makerfc = $(SILC_TOP_SRCDIR)/scripts/makerfc
 
 toolkit-ref-html:
@@ -51,52 +52,67 @@ toolkit-ref-pdf:
         fi
 
 dist-hook:
-       rm -rf `find $(top_distdir)/doc -name CVS`
-       $(SILC_TOP_SRCDIR)/scripts/manpages.pl
-       touch draft-riikonen-silc-spec-08.txt
+       touch draft-riikonen-silc-spec-09.txt
        touch draft-riikonen-silc-pp-09.txt
-       touch draft-riikonen-silc-ke-auth-08.txt
-       touch draft-riikonen-silc-commands-06.txt
+       touch draft-riikonen-silc-ke-auth-09.txt
+       touch draft-riikonen-silc-commands-07.txt
        touch draft-riikonen-silc-flags-payloads-04.txt
-       touch draft-riikonen-presence-attrs-03.txt
-       $(makerfc) draft-riikonen-silc-spec-08.nroff \
-               draft-riikonen-silc-spec-08.txt
+       touch draft-riikonen-silc-multimedia-session-00.txt
+       touch draft-riikonen-presence-attrs-04.txt
+       $(makerfc) draft-riikonen-silc-spec-09.nroff \
+               draft-riikonen-silc-spec-09.txt
        $(makerfc) draft-riikonen-silc-pp-09.nroff \
                draft-riikonen-silc-pp-09.txt
-       $(makerfc) draft-riikonen-silc-ke-auth-08.nroff \
-               draft-riikonen-silc-ke-auth-08.txt
-       $(makerfc) draft-riikonen-silc-commands-06.nroff \
-               draft-riikonen-silc-commands-06.txt
+       $(makerfc) draft-riikonen-silc-ke-auth-09.nroff \
+               draft-riikonen-silc-ke-auth-09.txt
+       $(makerfc) draft-riikonen-silc-commands-07.nroff \
+               draft-riikonen-silc-commands-07.txt
        $(makerfc) draft-riikonen-silc-flags-payloads-04.nroff \
                draft-riikonen-silc-flags-payloads-04.txt
-       $(makerfc) draft-riikonen-presence-attrs-03.nroff \
-               draft-riikonen-presence-attrs-03.txt
+       $(makerfc) draft-riikonen-silc-multimedia-session-00.nroff \
+               draft-riikonen-silc-multimedia-session-00.txt
+       $(makerfc) draft-riikonen-presence-attrs-04.nroff \
+               draft-riikonen-presence-attrs-04.txt
 
 #else !SILC_DIST_TOOLKIT
 dist-hook:
-       rm -rf `find $(top_distdir)/doc -name CVS`
        $(SILC_TOP_SRCDIR)/scripts/manpages.pl
-       rm draft-riikonen*.txt
-       touch draft-riikonen-silc-spec-08.txt
-       touch draft-riikonen-silc-pp-09.txt
-       touch draft-riikonen-silc-ke-auth-08.txt
-       touch draft-riikonen-silc-commands-06.txt
-       touch draft-riikonen-silc-flags-payloads-04.txt
-       touch draft-riikonen-presence-attrs-03.txt
 #endif SILC_DIST_TOOLKIT
 
+doc-install:
+       -mkdir -p $(docdir)
+#ifdef SILC_DIST_TOOLKIT
+       -$(INSTALL_DATA) $(top_srcdir)/doc/CodingStyle $(docdir)/
+       -$(INSTALL_DATA) $(top_srcdir)/GPL $(docdir)/
+       -$(INSTALL_DATA) $(top_srcdir)/BSD $(docdir)/
+       -$(INSTALL_DATA) $(top_srcdir)/doc/*.txt $(docdir)/
+#endif SILC_DIST_TOOLKIT
+       -$(INSTALL_DATA) $(top_srcdir)/doc/FAQ $(docdir)/
+       -$(INSTALL_DATA) $(top_srcdir)/COPYING $(docdir)/
+       -$(INSTALL_DATA) $(top_srcdir)/CHANGES $(docdir)/
+       -$(INSTALL_DATA) $(top_srcdir)/CREDITS $(docdir)/
+       -$(INSTALL_DATA) $(top_srcdir)/README* $(docdir)/
+       -$(INSTALL_DATA) $(top_srcdir)/INSTALL $(docdir)/
+       -$(INSTALL_DATA) $(top_srcdir)/TODO $(docdir)/
+
+install-data-hook:     \
+       doc-install
+
 EXTRA_DIST =                   \
 #ifdef SILC_DIST_CLIENT
        silc.1                  \
 #endif SILC_DIST_CLIENT
 #ifdef SILC_DIST_SERVER
        examples silcd.8 silcd.conf.5   \
+       example_silcd.conf      \
+       silcalgs.conf           \
 #endif SILC_DIST_SERVER
 #ifdef SILC_DIST_TOOLKIT
        toolkit                 \
        CodingStyle             \
+       draft-riikonen*.txt     \
+       silcalgs.conf           \
 #endif SILC_DIST_TOOLKIT
-       FAQ                     \
-       example_silcd.conf      \
-       silcalgs.conf           \
-       draft-riikonen*.txt
+       FAQ
+
+include $(top_srcdir)/Makefile.defines.in