diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2002-05-08 19:39:25 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2002-05-08 19:39:25 +0000 |
commit | 42cbe0cf6ad2efd78729fb7f9f0a6c7090c193e3 (patch) | |
tree | 1b279dedbb335e35d1677e1ad6756a4bd408e908 /gnu/usr.bin/binutils/Makefile.bsd-wrapper | |
parent | b7cce76d789b8c26d2134b0d9a53a6d9b5189619 (diff) |
includes should be installed during `make include', not later.
Fixes this for lex and binutils' bfd.
Also, do not install ansidecl.h, we don't really need it, bfd.h uses it,
and we installed it so that bfd worked, so let bfd.h include it directly.
prompted by mickey@
Diffstat (limited to 'gnu/usr.bin/binutils/Makefile.bsd-wrapper')
-rw-r--r-- | gnu/usr.bin/binutils/Makefile.bsd-wrapper | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils/Makefile.bsd-wrapper b/gnu/usr.bin/binutils/Makefile.bsd-wrapper index c5277027bd7..15dc816b48e 100644 --- a/gnu/usr.bin/binutils/Makefile.bsd-wrapper +++ b/gnu/usr.bin/binutils/Makefile.bsd-wrapper @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile.bsd-wrapper,v 1.46 2002/05/08 16:48:11 art Exp $ +# $OpenBSD: Makefile.bsd-wrapper,v 1.47 2002/05/08 19:39:24 espie Exp $ NEW_BINUTILS=alpha mips powerpc hppa sparc64 @@ -87,6 +87,19 @@ install: maninstall clean cleandir: -@if [ -e Makefile ]; then ${MAKE} distclean; fi +prereq: config.status + cd ${.OBJDIR}/bfd && ${MAKE} bfd.h + # we don't install ansidecl.h, we merge it into the file that + # needs it instead. + sed -e '/^#include "ansidecl.h"/r${.CURDIR}/include/ansidecl.h' -e '//d' \ + bfd/bfd.h >bfd/mybfd.h + +includes: + install -C -o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE} \ + ${.CURDIR}/include/bfdlink.h ${DESTDIR}/usr/include + install -C -o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE} \ + bfd/mybfd.h ${DESTDIR}/usr/include/bfd.h + depend: # Nothing here so far... |