summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.in52
-rw-r--r--configure.ac1
-rw-r--r--contrib/cygwin/Makefile11
3 files changed, 26 insertions, 38 deletions
diff --git a/Makefile.in b/Makefile.in
index 2f6f9818e..6ce95c616 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -61,6 +61,7 @@ XAUTH_PATH=@XAUTH_PATH@
61LDFLAGS=-L. -Lopenbsd-compat/ @LDFLAGS@ 61LDFLAGS=-L. -Lopenbsd-compat/ @LDFLAGS@
62EXEEXT=@EXEEXT@ 62EXEEXT=@EXEEXT@
63MANFMT=@MANFMT@ 63MANFMT=@MANFMT@
64MKDIR_P=@MKDIR_P@
64 65
65TARGETS=ssh$(EXEEXT) sshd$(EXEEXT) ssh-add$(EXEEXT) ssh-keygen$(EXEEXT) ssh-keyscan${EXEEXT} ssh-keysign${EXEEXT} ssh-pkcs11-helper$(EXEEXT) ssh-agent$(EXEEXT) scp$(EXEEXT) sftp-server$(EXEEXT) sftp$(EXEEXT) 66TARGETS=ssh$(EXEEXT) sshd$(EXEEXT) ssh-add$(EXEEXT) ssh-keygen$(EXEEXT) ssh-keyscan${EXEEXT} ssh-keysign${EXEEXT} ssh-pkcs11-helper$(EXEEXT) ssh-agent$(EXEEXT) scp$(EXEEXT) sftp-server$(EXEEXT) sftp$(EXEEXT)
66 67
@@ -310,14 +311,13 @@ check-config:
310 -$(DESTDIR)$(sbindir)/sshd -t -f $(DESTDIR)$(sysconfdir)/sshd_config 311 -$(DESTDIR)$(sbindir)/sshd -t -f $(DESTDIR)$(sysconfdir)/sshd_config
311 312
312install-files: 313install-files:
313 $(srcdir)/mkinstalldirs $(DESTDIR)$(bindir) 314 $(MKDIR_P) $(DESTDIR)$(bindir)
314 $(srcdir)/mkinstalldirs $(DESTDIR)$(sbindir) 315 $(MKDIR_P) $(DESTDIR)$(sbindir)
315 $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir) 316 $(MKDIR_P) $(DESTDIR)$(mandir)/$(mansubdir)1
316 $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$(mansubdir)1 317 $(MKDIR_P) $(DESTDIR)$(mandir)/$(mansubdir)5
317 $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$(mansubdir)5 318 $(MKDIR_P) $(DESTDIR)$(mandir)/$(mansubdir)8
318 $(srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/$(mansubdir)8 319 $(MKDIR_P) $(DESTDIR)$(libexecdir)
319 $(srcdir)/mkinstalldirs $(DESTDIR)$(libexecdir) 320 $(MKDIR_P) -m 0755 $(DESTDIR)$(PRIVSEP_PATH)
320 (umask 022 ; $(srcdir)/mkinstalldirs $(DESTDIR)$(PRIVSEP_PATH))
321 $(INSTALL) -m 0755 $(STRIP_OPT) ssh$(EXEEXT) $(DESTDIR)$(bindir)/ssh$(EXEEXT) 321 $(INSTALL) -m 0755 $(STRIP_OPT) ssh$(EXEEXT) $(DESTDIR)$(bindir)/ssh$(EXEEXT)
322 $(INSTALL) -m 0755 $(STRIP_OPT) scp$(EXEEXT) $(DESTDIR)$(bindir)/scp$(EXEEXT) 322 $(INSTALL) -m 0755 $(STRIP_OPT) scp$(EXEEXT) $(DESTDIR)$(bindir)/scp$(EXEEXT)
323 $(INSTALL) -m 0755 $(STRIP_OPT) ssh-add$(EXEEXT) $(DESTDIR)$(bindir)/ssh-add$(EXEEXT) 323 $(INSTALL) -m 0755 $(STRIP_OPT) ssh-add$(EXEEXT) $(DESTDIR)$(bindir)/ssh-add$(EXEEXT)
@@ -345,9 +345,7 @@ install-files:
345 $(INSTALL) -m 644 ssh-pkcs11-helper.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-pkcs11-helper.8 345 $(INSTALL) -m 644 ssh-pkcs11-helper.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-pkcs11-helper.8
346 346
347install-sysconf: 347install-sysconf:
348 if [ ! -d $(DESTDIR)$(sysconfdir) ]; then \ 348 $(MKDIR_P) $(DESTDIR)$(sysconfdir)
349 $(srcdir)/mkinstalldirs $(DESTDIR)$(sysconfdir); \
350 fi
351 @if [ ! -f $(DESTDIR)$(sysconfdir)/ssh_config ]; then \ 349 @if [ ! -f $(DESTDIR)$(sysconfdir)/ssh_config ]; then \
352 $(INSTALL) -m 644 ssh_config.out $(DESTDIR)$(sysconfdir)/ssh_config; \ 350 $(INSTALL) -m 644 ssh_config.out $(DESTDIR)$(sysconfdir)/ssh_config; \
353 else \ 351 else \
@@ -418,28 +416,16 @@ uninstall:
418 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-pkcs11-helper.8 416 -rm -f $(DESTDIR)$(mandir)/$(mansubdir)8/ssh-pkcs11-helper.8
419 417
420regress-prep: 418regress-prep:
421 [ -d `pwd`/regress ] || mkdir -p `pwd`/regress 419 $(MKDIR_P) `pwd`/regress/unittests/test_helper
422 [ -d `pwd`/regress/unittests ] || mkdir -p `pwd`/regress/unittests 420 $(MKDIR_P) `pwd`/regress/unittests/sshbuf
423 [ -d `pwd`/regress/unittests/test_helper ] || \ 421 $(MKDIR_P) `pwd`/regress/unittests/sshkey
424 mkdir -p `pwd`/regress/unittests/test_helper 422 $(MKDIR_P) `pwd`/regress/unittests/bitmap
425 [ -d `pwd`/regress/unittests/sshbuf ] || \ 423 $(MKDIR_P) `pwd`/regress/unittests/conversion
426 mkdir -p `pwd`/regress/unittests/sshbuf 424 $(MKDIR_P) `pwd`/regress/unittests/hostkeys
427 [ -d `pwd`/regress/unittests/sshkey ] || \ 425 $(MKDIR_P) `pwd`/regress/unittests/kex
428 mkdir -p `pwd`/regress/unittests/sshkey 426 $(MKDIR_P) `pwd`/regress/unittests/match
429 [ -d `pwd`/regress/unittests/bitmap ] || \ 427 $(MKDIR_P) `pwd`/regress/unittests/utf8
430 mkdir -p `pwd`/regress/unittests/bitmap 428 $(MKDIR_P) `pwd`/regress/misc/kexfuzz
431 [ -d `pwd`/regress/unittests/conversion ] || \
432 mkdir -p `pwd`/regress/unittests/conversion
433 [ -d `pwd`/regress/unittests/hostkeys ] || \
434 mkdir -p `pwd`/regress/unittests/hostkeys
435 [ -d `pwd`/regress/unittests/kex ] || \
436 mkdir -p `pwd`/regress/unittests/kex
437 [ -d `pwd`/regress/unittests/match ] || \
438 mkdir -p `pwd`/regress/unittests/match
439 [ -d `pwd`/regress/unittests/utf8 ] || \
440 mkdir -p `pwd`/regress/unittests/utf8
441 [ -d `pwd`/regress/misc/kexfuzz ] || \
442 mkdir -p `pwd`/regress/misc/kexfuzz
443 [ -f `pwd`/regress/Makefile ] || \ 429 [ -f `pwd`/regress/Makefile ] || \
444 ln -s `cd $(srcdir) && pwd`/regress/Makefile `pwd`/regress/Makefile 430 ln -s `cd $(srcdir) && pwd`/regress/Makefile `pwd`/regress/Makefile
445 431
diff --git a/configure.ac b/configure.ac
index 78ba25c96..1c7af609d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -30,6 +30,7 @@ AC_PROG_CPP
30AC_PROG_RANLIB 30AC_PROG_RANLIB
31AC_PROG_INSTALL 31AC_PROG_INSTALL
32AC_PROG_EGREP 32AC_PROG_EGREP
33AC_PROG_MKDIR_P
33AC_CHECK_TOOLS([AR], [ar]) 34AC_CHECK_TOOLS([AR], [ar])
34AC_PATH_PROG([CAT], [cat]) 35AC_PATH_PROG([CAT], [cat])
35AC_PATH_PROG([KILL], [kill]) 36AC_PATH_PROG([KILL], [kill])
diff --git a/contrib/cygwin/Makefile b/contrib/cygwin/Makefile
index a0261f48d..4b78cd950 100644
--- a/contrib/cygwin/Makefile
+++ b/contrib/cygwin/Makefile
@@ -13,6 +13,7 @@ defaultsdir=$(sysconfdir)/defaults/etc
13inetdefdir=$(defaultsdir)/inetd.d 13inetdefdir=$(defaultsdir)/inetd.d
14PRIVSEP_PATH=/var/empty 14PRIVSEP_PATH=/var/empty
15INSTALL=/usr/bin/install -c 15INSTALL=/usr/bin/install -c
16MKDIR_P=$(srcdir)/mkinstalldirs
16 17
17DESTDIR= 18DESTDIR=
18 19
@@ -23,7 +24,7 @@ all:
23 @echo 24 @echo
24 25
25move-config-files: $(DESTDIR)$(sysconfdir)/ssh_config $(DESTDIR)$(sysconfdir)/sshd_config 26move-config-files: $(DESTDIR)$(sysconfdir)/ssh_config $(DESTDIR)$(sysconfdir)/sshd_config
26 $(srcdir)/mkinstalldirs $(DESTDIR)$(defaultsdir) 27 $(MKDIR_P) $(DESTDIR)$(defaultsdir)
27 mv $(DESTDIR)$(sysconfdir)/ssh_config $(DESTDIR)$(defaultsdir) 28 mv $(DESTDIR)$(sysconfdir)/ssh_config $(DESTDIR)$(defaultsdir)
28 mv $(DESTDIR)$(sysconfdir)/sshd_config $(DESTDIR)$(defaultsdir) 29 mv $(DESTDIR)$(sysconfdir)/sshd_config $(DESTDIR)$(defaultsdir)
29 30
@@ -31,11 +32,11 @@ remove-empty-dir:
31 rm -rf $(DESTDIR)$(PRIVSEP_PATH) 32 rm -rf $(DESTDIR)$(PRIVSEP_PATH)
32 33
33install-inetd-config: 34install-inetd-config:
34 $(srcdir)/mkinstalldirs $(DESTDIR)$(inetdefdir) 35 $(MKDIR_P) $(DESTDIR)$(inetdefdir)
35 $(INSTALL) -m 644 sshd-inetd $(DESTDIR)$(inetdefdir)/sshd-inetd 36 $(INSTALL) -m 644 sshd-inetd $(DESTDIR)$(inetdefdir)/sshd-inetd
36 37
37install-sshdoc: 38install-sshdoc:
38 $(srcdir)/mkinstalldirs $(DESTDIR)$(sshdocdir) 39 $(MKDIR_P) $(DESTDIR)$(sshdocdir)
39 -$(INSTALL) -m 644 $(srcdir)/CREDITS $(DESTDIR)$(sshdocdir)/CREDITS 40 -$(INSTALL) -m 644 $(srcdir)/CREDITS $(DESTDIR)$(sshdocdir)/CREDITS
40 -$(INSTALL) -m 644 $(srcdir)/ChangeLog $(DESTDIR)$(sshdocdir)/ChangeLog 41 -$(INSTALL) -m 644 $(srcdir)/ChangeLog $(DESTDIR)$(sshdocdir)/ChangeLog
41 -$(INSTALL) -m 644 $(srcdir)/LICENCE $(DESTDIR)$(sshdocdir)/LICENCE 42 -$(INSTALL) -m 644 $(srcdir)/LICENCE $(DESTDIR)$(sshdocdir)/LICENCE
@@ -52,13 +53,13 @@ install-sshdoc:
52 -$(INSTALL) -m 644 $(srcdir)/TODO $(DESTDIR)$(sshdocdir)/TODO 53 -$(INSTALL) -m 644 $(srcdir)/TODO $(DESTDIR)$(sshdocdir)/TODO
53 54
54install-cygwindoc: README 55install-cygwindoc: README
55 $(srcdir)/mkinstalldirs $(DESTDIR)$(cygdocdir) 56 $(MKDIR_P) $(DESTDIR)$(cygdocdir)
56 $(INSTALL) -m 644 README $(DESTDIR)$(cygdocdir)/openssh.README 57 $(INSTALL) -m 644 README $(DESTDIR)$(cygdocdir)/openssh.README
57 58
58install-doc: install-sshdoc install-cygwindoc 59install-doc: install-sshdoc install-cygwindoc
59 60
60install-scripts: ssh-host-config ssh-user-config 61install-scripts: ssh-host-config ssh-user-config
61 $(srcdir)/mkinstalldirs $(DESTDIR)$(bindir) 62 $(MKDIR_P) $(DESTDIR)$(bindir)
62 $(INSTALL) -m 755 ssh-host-config $(DESTDIR)$(bindir)/ssh-host-config 63 $(INSTALL) -m 755 ssh-host-config $(DESTDIR)$(bindir)/ssh-host-config
63 $(INSTALL) -m 755 ssh-user-config $(DESTDIR)$(bindir)/ssh-user-config 64 $(INSTALL) -m 755 ssh-user-config $(DESTDIR)$(bindir)/ssh-user-config
64 65