diff options
author | Damien Miller <djm@mindrot.org> | 1999-11-13 10:48:51 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 1999-11-13 10:48:51 +1100 |
commit | 296a546476a848f73cb126aa66bce737038e2273 (patch) | |
tree | fe7752cfa86ac824fdb40fa35d6c16f1ae35882a /Makefile.in | |
parent | 06e42932b2013525a29e9ce79148739cfb7a878f (diff) |
Don't install config files if they already exist
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in index 9918b0b9..365df018 100644 --- a/Makefile.in +++ b/Makefile.in @@ -4,12 +4,13 @@ bindir=@bindir@ sbindir=@sbindir@ libdir=@libdir@ mandir=@mandir@ +sysconfdir=@sysconfdir@ SSH_PROGRAM=@bindir@/ssh ASKPASS_PROGRAM=@libdir@/ssh/ssh-askpass CC=@CC@ -PATHS=-DETCDIR=\"@sysconfdir@\" -DSSH_PROGRAM=\"$(SSH_PROGRAM)\" -DASKPASS_PROGRAM=\"$(ASKPASS_PROGRAM)\" +PATHS=-DETCDIR=\"$(sysconfdir)\" -DSSH_PROGRAM=\"$(SSH_PROGRAM)\" -DASKPASS_PROGRAM=\"$(ASKPASS_PROGRAM)\" CFLAGS=@CFLAGS@ $(PATHS) @DEFS@ EXTRA_TARGETS=@GNOME_ASKPASS@ TARGETS=libssh.a ssh sshd ssh-add ssh-keygen ssh-agent scp $(EXTRA_TARGETS) @@ -89,6 +90,12 @@ install: all fi ; \ fi + if [ ! -f $(sysconfdir)/ssh_config -a ! -f $(sysconfdir)/sshd_config ]; then \ + install -d $(sysconfdir); \ + install -m644 ssh_config $(sysconfdir)/ssh_config; \ + install -m644 sshd_config $(sysconfdir)/sshd_config; \ + fi + distclean: clean rm -f Makefile config.h core *~ |