Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/regress/sys/kern/ipf/regress



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`



Home | Main Index | Thread Index | Old Index