etc-install fix.
authorPekka Riikonen <priikone@silcnet.org>
Thu, 10 Oct 2002 14:27:41 +0000 (14:27 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Thu, 10 Oct 2002 14:27:41 +0000 (14:27 +0000)
Makefile.am.pre

index 88bb10f77ee8dc8ec9e16129c0976e4ff95c173c..f837d1e1b4e5567f5022665fb31b8a76796d9244 100644 (file)
@@ -91,9 +91,11 @@ etc-install:
                $(etcdir)/silcalgs.conf; \
           chmod go= $(etcdir)/silcd.conf; \
        fi
-       -@if test '!' -f $(etcdir)/silc.conf ; then \
-         $(INSTALL_DATA) $(srcdir)/irssi/silc.conf \
-         $(etcdir)/silc.conf; \
+       -@if test '!' -d $(srcdir)/irssi ; then \
+         if test '!' -f $(etcdir)/silc.conf ; then \
+           $(INSTALL_DATA) $(srcdir)/irssi/silc.conf; \
+           $(etcdir)/silc.conf; \
+         fi; \
        fi
 
 if SILC_DIST_CLIENT