4 # Author: Pekka Riikonen <priikone@poseidon.pspt.fi>
6 # Copyright (C) 2000 - 2001 Pekka Riikonen
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
19 AUTOMAKE_OPTIONS = 1.0 no-dependencies foreign
21 COMMONDIRS = lib irssi silc silcd doc includes
22 SUBDIRS = SILC_DISTRIBUTION_SUBDIRS
23 DIST_SUBDIRS = SILC_DISTRIBUTION_SUBDIRS
25 include $(top_srcdir)/Makefile.defines.in
28 -chmod -R a+r $(distdir)
29 -$(TAR) chof $(distdir).tar $(distdir)
33 SILC_EXTRA_DIST = SILC_DISTRIBUTION_EXTRA
34 EXTRA_DIST = CHANGES CREDITS $(SILC_EXTRA_DIST)
37 # Installing of SILC into the system
40 etcdir = $(silc_etcdir)
41 modulesdir = $(silc_modulesdir)
42 helpdir = $(silc_helpdir)
43 docdir = $(silc_docdir)
44 logsdir = $(silc_logsdir)
48 -mkdir -p $(modulesdir)
54 -@if test '!' -f $(etcdir)/silcd.pub ; then \
55 $(sbindir)/silcd -C $(etcdir); \
59 -cp -fR $(srcdir)/lib/silcsim/modules/*.so $(modulesdir)/
62 $(INSTALL_DATA) $(srcdir)/doc/CodingStyle $(docdir)/
63 $(INSTALL_DATA) $(srcdir)/doc/FAQ $(docdir)/
64 $(INSTALL_DATA) $(srcdir)/doc/example* $(docdir)/
65 $(INSTALL_DATA) $(srcdir)/doc/*.txt $(docdir)/
66 $(INSTALL_DATA) $(srcdir)/COPYING $(docdir)/
67 $(INSTALL_DATA) $(srcdir)/CHANGES $(docdir)/
68 $(INSTALL_DATA) $(srcdir)/CREDITS $(docdir)/
69 $(INSTALL_DATA) $(srcdir)/README $(docdir)/
70 $(INSTALL_DATA) $(srcdir)/INSTALL $(docdir)/
71 $(INSTALL_DATA) $(srcdir)/TODO $(docdir)/
74 -@if test '!' -f $(etcdir)/silcd.conf ; then \
75 $(INSTALL_DATA) $(srcdir)/doc/example_silcd.conf \
76 $(etcdir)/silcd.conf; \
77 chmod go= $(etcdir)/silcd.conf; \
79 -@if test '!' -f $(etcdir)/silc.conf ; then \
80 $(INSTALL_DATA) $(srcdir)/doc/example_silc.conf \
81 $(etcdir)/silc.conf; \
84 install-data-hook: install-dirs generate-server-key sim-install doc-install etc-install