summaryrefslogtreecommitdiff
path: root/sys/arch/vax/conf
diff options
context:
space:
mode:
authorPaul Irofti <pirofti@cvs.openbsd.org>2009-01-11 21:02:04 +0000
committerPaul Irofti <pirofti@cvs.openbsd.org>2009-01-11 21:02:04 +0000
commit9751df9f73e035e5fdd544b02f23b9c8598bd9ae (patch)
tree9770f540b1474cfaaba20fe20c7974afa62c0bb2 /sys/arch/vax/conf
parent8c73d12e4ebe3d849dd814c8d6532a4256cedda9 (diff)
Fix a sed bug in the makefile's depend target.
What happened was that the output of mkdep was fed to a sed expression that trimmed a bit more than required and also failed to work when attempting to do make depend with pcc. Example: genassym_c.o: /tmp/genassym.whatever ../../../../../sys/param.h \ was changed to: assym.h: \ but what was intended was: assym.h: ../../../../../sys/param.h \ For the pcc -M output things were a bit different and after the make depend the genassym entry would still remain and make would fail. This affected all platforms except amd64 and sgi. Okay miod@.
Diffstat (limited to 'sys/arch/vax/conf')
-rw-r--r--sys/arch/vax/conf/Makefile.vax5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/vax/conf/Makefile.vax b/sys/arch/vax/conf/Makefile.vax
index 7083c99a686..ca1b279da76 100644
--- a/sys/arch/vax/conf/Makefile.vax
+++ b/sys/arch/vax/conf/Makefile.vax
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile.vax,v 1.32 2008/04/12 21:04:17 miod Exp $
+# $OpenBSD: Makefile.vax,v 1.33 2009/01/11 21:02:03 pirofti Exp $
# $NetBSD: Makefile.vax,v 1.49 1999/07/26 05:20:49 cgd Exp $
# Makefile for OpenBSD/vax
@@ -170,7 +170,8 @@ depend:: .depend
${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES}
sh $S/kern/genassym.sh ${MKDEP} -f assym.dep ${CFLAGS} \
${CPPFLAGS} < ${VAX}/vax/genassym.cf
- @sed -e 's/.*\.o:.* /assym.h: /' < assym.dep >> .depend
+ @sed -e 's/.*\.o: /assym.h: /' -e 's/\/tmp\/genassym_c.[^ ]*//' \
+ < assym.dep >> .depend
@rm -f assym.dep