diff options
Diffstat (limited to 'regress/usr.sbin/switchd/Makefile')
-rw-r--r-- | regress/usr.sbin/switchd/Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/regress/usr.sbin/switchd/Makefile b/regress/usr.sbin/switchd/Makefile index 8319910e3e2..9d9c8894d4a 100644 --- a/regress/usr.sbin/switchd/Makefile +++ b/regress/usr.sbin/switchd/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.1 2016/07/19 17:04:19 reyk Exp $ +# $OpenBSD: Makefile,v 1.2 2016/07/22 09:28:59 reyk Exp $ # The following ports must be installed for the regression tests: # p5-Net-Pcap Perl interface for libpcap @@ -54,9 +54,9 @@ run-regress-$a: $a ${OFP_HEADERS}: @-mkdir -p ${.OBJDIR}/net - # XXX headers can be in two different locations - @-test ${SRC_PATH}/$@ && cp ${SRC_PATH}/$@ ${.OBJDIR} - @-test ${SYS_PATH}/$@ && cp ${SYS_PATH}/$@ ${.OBJDIR}/net + @-for i in ${SRC_PATH}/$@ ${SYS_PATH}/$@; do \ + test -s $$i && grep -v '^#include' $$i > ${.OBJDIR}/$@; \ + done .SUFFIXES: .h .ph .h.ph: |