From 366293ee10d198d4748199a9461c83a4cf897948 Mon Sep 17 00:00:00 2001 From: reyk Date: Fri, 22 Jul 2016 09:28:59 +0000 Subject: [PATCH] Fix generated Perl headers. With input from bluhm@ --- regress/usr.sbin/switchd/Makefile | 8 ++++---- 1 file 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: -- 2.20.1