From 6b472ffac5bf56db90ed1864ca1d01361303dbf2 Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Mon, 17 Jun 2013 21:27:17 +0000 Subject: ditch the beforedepend target and properly generate SRCS file list that includes the symlinked src files as well --- kerberosV/lib/libgssapi/Makefile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/kerberosV/lib/libgssapi/Makefile b/kerberosV/lib/libgssapi/Makefile index 00ca8e82138..f5a5ce22359 100644 --- a/kerberosV/lib/libgssapi/Makefile +++ b/kerberosV/lib/libgssapi/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.2 2013/06/17 21:14:19 robert Exp $ +# $OpenBSD: Makefile,v 1.3 2013/06/17 21:27:16 robert Exp $ LIB= gssapi @@ -277,12 +277,10 @@ CLEANFILES= ${GEN} ${GEN:S/.x$/.c/:S/.hx$/.h/} gssapi_asn1_files spnego_asn1_fil .for i in ${KRB5SRC} ${MECHSRC} ${SPNEGOSRC} ${NTLMSRC} CLEANFILES+=$i -.endfor +SRCS+=$i -beforedepend: -.for i in ${KRB5SRC} ${MECHSRC} ${SPNEGOSRC} ${NTLMSRC} - cmp -s ${KRB5DIR}/lib/gssapi/${i:S@__@/@} ${.OBJDIR}/${i} || \ - ln -sf ${KRB5DIR}/lib/gssapi/${i:S@__@/@} ${.OBJDIR}/${i} +${i}: ${i:S@__@/@} + ln -s ${.ALLSRC} ${.OBJDIR}/${i} .endfor gengssapi: gssapi.asn1 -- cgit v1.2.3