Subject: Re: CVS commit: src/regress/sys/kern/ipf/regress
To: Bill Stouder-Studenmund <wrstuden@netbsd.org>
From: Martti Kuparinen <martti.kuparinen@iki.fi>
List: source-changes
Date: 05/02/2007 21:01:48
Bill Stouder-Studenmund kirjoitti:
> ${.OBJDIR}/foo
> cp ${.CURDIR}/foo ${.OBJDIR}/foo
>
> Then have the test depend on the ${.OBJDIR} version.
Would this be more "right" than the current version?
Index: Makefile
===================================================================
RCS file: /cvsroot/src/regress/sys/kern/ipf/Makefile,v
retrieving revision 1.15
diff -u -r1.15 Makefile
--- Makefile 2 May 2007 14:30:08 -0000 1.15
+++ Makefile 2 May 2007 18:00:40 -0000
@@ -86,12 +86,14 @@
@${HOST_SH} ${.CURDIR}/iptest ${.CURDIR} \
`${AWK} "/^$@ / { print; } " ${.CURDIR}/test.format`
-ip2:
+${.OBJDIR}/input/ip2.data:
@if [ -d ${MAKEOBJDIRPREFIX}${.CURDIR} ]; then \
mkdir -p ${MAKEOBJDIRPREFIX}${.CURDIR}/input; \
cp -f ${.CURDIR}/input/ip2.data \
${MAKEOBJDIRPREFIX}${.CURDIR}/input/ip2.data; \
fi
+
+ip2: ${.OBJDIR}/input/ip2.data
@${HOST_SH} ${.CURDIR}/iptest ${.CURDIR} \
`${AWK} "/^$@ / { print; } " ${.CURDIR}/test.format`