Use "${TOOL_SED}" instead of just "sed" in sys/arch/m68k/060sp/asm2gas.
This commit is contained in:
parent
4a4d3f9c31
commit
a749c03e28
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.12 2003/10/26 07:25:35 lukem Exp $
|
||||
# $NetBSD: Makefile,v 1.13 2008/03/27 07:15:16 apb Exp $
|
||||
|
||||
NOMAN= # defined
|
||||
|
||||
|
@ -14,6 +14,7 @@ CLEANFILES+= itest.S ftest.S
|
|||
.SUFFIXES: .S .sa
|
||||
|
||||
.sa.S:
|
||||
TOOL_SED=${TOOL_SED:Q} \
|
||||
${HOST_SH} ${SPDIR}/asm2gas ${.IMPSRC} >${.TARGET}
|
||||
|
||||
.PATH: ${SPDIR}/dist
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# $NetBSD: Makefile,v 1.8 2005/12/11 12:17:52 christos Exp $
|
||||
# $NetBSD: Makefile,v 1.9 2008/03/27 07:15:16 apb Exp $
|
||||
|
||||
.include <bsd.sys.mk> # for HOST_SH
|
||||
.include <bsd.sys.mk> # for HOST_SH, TOOL_SED
|
||||
|
||||
# regenerate isp.S, fpsp.S, pfpsp.S
|
||||
|
||||
|
@ -11,6 +11,7 @@
|
|||
.PATH: dist
|
||||
|
||||
.sa.S:
|
||||
TOOL_SED=${TOOL_SED:Q} \
|
||||
${HOST_SH} asm2gas ${.IMPSRC} >${.TARGET}
|
||||
|
||||
all: isp.S fpsp.S pfpsp.S
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh
|
||||
# $NetBSD: asm2gas,v 1.6 1998/08/15 03:51:31 mycroft Exp $
|
||||
# $NetBSD: asm2gas,v 1.7 2008/03/27 07:15:16 apb Exp $
|
||||
|
||||
#
|
||||
# Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -40,7 +40,9 @@
|
|||
# This ugly script converts assembler code from Motorola's format to a
|
||||
# form that gas (MIT syntax) can digest.
|
||||
|
||||
cat $1 | sed -e '
|
||||
: ${TOOL_SED:=sed}
|
||||
|
||||
cat "$1" | "${TOOL_SED}" -e '
|
||||
# format canonicalization
|
||||
|
||||
s/^#/|#/
|
||||
|
|
Loading…
Reference in New Issue