X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=Makefile.am.pre;h=510b418adb5806facc45c6f638bebfa086d27cb1;hb=6394d86063413bc1c473723f3ef971840195bcd3;hp=1e78a25472cf6a27a867f642a9d6cf098edcf2d9;hpb=f0188faf5a7b6bd334ec220822387ca5f6edf62c;p=silc.git diff --git a/Makefile.am.pre b/Makefile.am.pre index 1e78a254..510b418a 100644 --- a/Makefile.am.pre +++ b/Makefile.am.pre @@ -1,14 +1,13 @@ # # Makefile.am # -# Author: Pekka Riikonen +# Author: Pekka Riikonen # # Copyright (C) 2000 - 2001 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 -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. +# the Free Software Foundation; version 2 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -37,11 +36,11 @@ EXTRA_DIST = CHANGES CREDITS $(SILC_EXTRA_DIST) # Installing of SILC into the system # -etcdir = $(silc_etcdir) -modulesdir = $(silc_modulesdir) -helpdir = $(silc_helpdir) -docdir = $(silc_docdir) -logsdir = $(silc_logsdir) +etcdir = $(DESTDIR)$(silc_etcdir) +modulesdir = $(DESTDIR)$(silc_modulesdir) +helpdir = $(DESTDIR)$(silc_helpdir) +docdir = $(DESTDIR)$(silc_docdir) +logsdir = $(DESTDIR)$(silc_logsdir) install-dirs: -mkdir -p $(etcdir) @@ -61,7 +60,7 @@ sim-install: doc-install: $(INSTALL_DATA) $(srcdir)/doc/CodingStyle $(docdir)/ $(INSTALL_DATA) $(srcdir)/doc/FAQ $(docdir)/ - $(INSTALL_DATA) $(srcdir)/doc/example* $(docdir)/ + $(INSTALL_DATA) $(srcdir)/doc/example_* $(docdir)/ $(INSTALL_DATA) $(srcdir)/doc/*.txt $(docdir)/ $(INSTALL_DATA) $(srcdir)/COPYING $(docdir)/ $(INSTALL_DATA) $(srcdir)/CHANGES $(docdir)/ @@ -70,6 +69,12 @@ doc-install: $(INSTALL_DATA) $(srcdir)/INSTALL $(docdir)/ $(INSTALL_DATA) $(srcdir)/TODO $(docdir)/ +examples-install: + -mkdir -p $(docdir)/examples/ + $(INSTALL_DATA) $(srcdir)/doc/examples/README $(docdir)/examples/ + $(INSTALL_DATA) $(srcdir)/doc/examples/silc* $(docdir)/examples/ + $(INSTALL_DATA) $(srcdir)/doc/examples/cell* $(docdir)/examples/ + etc-install: -@if test '!' -f $(etcdir)/silcd.conf ; then \ $(INSTALL_DATA) $(srcdir)/doc/example_silcd.conf \ @@ -81,4 +86,8 @@ etc-install: $(etcdir)/silc.conf; \ fi -install-data-hook: install-dirs generate-server-key sim-install doc-install etc-install +if SILC_DIST_CLIENT +install-data-hook: install-dirs sim-install doc-install etc-install +else +install-data-hook: install-dirs generate-server-key sim-install doc-install examples-install etc-install +endif