]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream commit
authorbluhm@openbsd.org <bluhm@openbsd.org>
Wed, 28 Sep 2016 20:09:52 +0000 (20:09 +0000)
committerDamien Miller <djm@mindrot.org>
Fri, 30 Sep 2016 20:44:43 +0000 (06:44 +1000)
Add a makefile rule to create the ssh library when
regress needs it.  This allows to run the ssh regression tests without doing
a "make build" before. Discussed with dtucker@ and djm@; OK djm@

Upstream-Regress-ID: ce489bd53afcd471225a125b4b94565d4717c025

regress/unittests/Makefile.inc

index 7385e2ba380c5eed5f9d191bb70ef025b536bd8e..20d32a7bfac40c2480a3c95c302d2022f2687c44 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.inc,v 1.6 2015/07/01 23:11:18 djm Exp $
+#      $OpenBSD: Makefile.inc,v 1.7 2016/09/28 20:09:52 bluhm Exp $
 
 .include <bsd.own.mk>
 .include <bsd.obj.mk>
@@ -49,11 +49,15 @@ DPADD+=${.CURDIR}/../test_helper/libtest_helper.a
 
 .if exists(${.CURDIR}/${SSHREL}/lib/${__objdir})
 LDADD+=-L${.CURDIR}/${SSHREL}/lib/${__objdir} -lssh
-DPADD+=${.CURDIR}/${SSHREL}/lib/${__objdir}/libssh.a
+LIBSSH=${.CURDIR}/${SSHREL}/lib/${__objdir}/libssh.a
 .else
 LDADD+=-L${.CURDIR}/${SSHREL}/lib -lssh
-DPADD+=${.CURDIR}/${SSHREL}/lib/libssh.a
+LIBSSH=${.CURDIR}/${SSHREL}/lib/libssh.a
 .endif
+DPADD+=${LIBSSH}
+${PROG}: ${LIBSSH}
+${LIBSSH}:
+       cd ${.CURDIR}/${SSHREL} && ${MAKE} lib
 
 LDADD+= -lcrypto
 DPADD+= ${LIBCRYPTO}