Use ${TOOL_SED} instead if plain sed in Makefiles.

This commit is contained in:
apb 2008-10-25 22:27:34 +00:00
parent 89799ead73
commit f46c1de7cb
133 changed files with 453 additions and 369 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.28 2008/08/29 00:02:21 gmcgarry Exp $
# $NetBSD: Makefile,v 1.29 2008/10/25 22:27:34 apb Exp $
# @(#)Makefile 8.1 (Berkeley) 5/31/93
#
# C Shell with process control; VM/UNIX VAX Makefile
@ -41,7 +41,7 @@ const.h: const.c
rm -f ${.TARGET}
echo '/* Do not edit this file, make creates it. */' > ${.TARGET}
${CC} -E ${CPPFLAGS} ${.ALLSRC} | egrep 'Char STR' | \
sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \
${TOOL_SED} -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \
sort >> ${.TARGET}
.if make(install)

View File

@ -154,7 +154,7 @@ version.o: version.c
version.c: $(srcdir)/VERSION
@rm -f $@
sed -e 's/.*/char version[] = "&";/' $(srcdir)/VERSION > $@
${TOOL_SED} -e 's/.*/char version[] = "&";/' $(srcdir)/VERSION > $@
install:
[ -d $(DESTDIR)$(sbindir) ] || \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.11 2003/10/26 07:25:33 lukem Exp $
# $NetBSD: Makefile,v 1.12 2008/10/25 22:27:34 apb Exp $
TOP= ${.CURDIR}/..
@ -27,13 +27,13 @@ MTREECONF= mtree.conf
DISKTYPE= floppy3
install.sh: install.tmpl
sed "s/@@VERSION@@/${DISTRIBVER}/" < ${.ALLSRC} > ${.TARGET}
${TOOL_SED} "s/@@VERSION@@/${DISTRIBVER}/" < ${.ALLSRC} > ${.TARGET}
upgrade.sh: upgrade.tmpl
sed "s/@@VERSION@@/${DISTRIBVER}/" < ${.ALLSRC} > ${.TARGET}
${TOOL_SED} "s/@@VERSION@@/${DISTRIBVER}/" < ${.ALLSRC} > ${.TARGET}
start.sh: start.tmpl
sed "s/@@VERSION@@/${DISTRIBVER}/" < ${.ALLSRC} > ${.TARGET}
${TOOL_SED} "s/@@VERSION@@/${DISTRIBVER}/" < ${.ALLSRC} > ${.TARGET}
all: ${AUXTARGETS} ${CBIN}
dd if=/dev/zero of=${IMAGE} count=3074

View File

@ -1,9 +1,11 @@
# $NetBSD: Makefile,v 1.37 2007/12/08 12:30:18 tsutsui Exp $
# $NetBSD: Makefile,v 1.38 2008/10/25 22:27:34 apb Exp $
#
# Consult "*.conf" for the configuration variables; this Makefile is typically
# not edited for basic configuration changes.
##############################################################################
.include <bsd.own.mk>
all:
.if exists(site.conf)
@ -412,7 +414,12 @@ size-${image}: stage-${image} extfileprep fileprep-${image}
.if !empty(BASE_PORTS.${image}:Mmacppc)
${MACPPC_MKBOOTHFSDIR}/macppc_mkboothfs ${MACPPC_MKBOOTHFSDIR}/boothfs
.endif
@size=$$((`cd ${STAGEDIR}/${image} && ${MKISOFS} ${MKISOFS_ARGS} ${MKISOFS_ARGS.${image}} -print-size . 2>&1 | tee /dev/stderr | sed '/=/!d;s/^[^=]*=//'` * 2048)) && \
@size=$$((`cd ${STAGEDIR}/${image} && \
${MKISOFS} ${MKISOFS_ARGS} ${MKISOFS_ARGS.${image}} \
-print-size . 2>&1
| tee /dev/stderr \
| ${TOOL_SED} '/=/!d;s/^[^=]*=//'`
* 2048)) && \
if [ "${SUN_BOOT_ARGS.${image}}" != "" ]; then \
size=$$(($$(($$size + 327679)) / 327680 * 327680)) && \
bootfiles=`for f in ${SUN_BOOT_ARGS.${image}:N-:O}; do echo $$f; done | uniq` && \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.makedev,v 1.14 2008/05/03 05:08:45 tsutsui Exp $
# $NetBSD: Makefile.makedev,v 1.15 2008/10/25 22:27:34 apb Exp $
#
# Makefile snippet to add ${MAKEDEVTARGETS} devices to the mtree list
# (if set), otherwise copy .OBJDIR-of-etc/MAKEDEV to ./dev
@ -46,7 +46,8 @@ ${MAKEDEVSPEC}: ${MAKEDEVSCRIPT}
-rm -f ${.TARGET} ${.TARGET}.tmp
MACHINE=${MACHINE:Q} MACHINE_ARCH=${MACHINE_ARCH:Q} \
${HOST_SH} ${MAKEDEVSCRIPT} -s ${MAKEDEVTARGETS} \
| sed -e '/^\. type=dir/d' -e 's,^\.,./dev,' > ${.TARGET}.tmp \
| ${TOOL_SED} -e '/^\. type=dir/d' -e 's,^\.,./dev,' \
> ${.TARGET}.tmp \
&& sort -o ${.TARGET} ${.TARGET}.tmp
.else # ! MAKEDEVTARGETS

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.40 2007/12/11 20:57:19 jnemeth Exp $
# $NetBSD: Makefile.inc,v 1.41 2008/10/25 22:27:34 apb Exp $
#
# Ross Harvey <ross@NetBSD.org>
@ -74,7 +74,7 @@ ${TARG}.more: ${SRCS} ${TOC.more} ${DISTRIBVERDEP}
#
TOCPROC= 2>&1 >/dev/null |\
sed -n '/^\.Ti/{s/ \([A-Za-z]\)/ "\1/; s/ *$$/"/; p; }'
${TOOL_SED} -n '/^\.Ti/{s/ \([A-Za-z]\)/ "\1/; s/ *$$/"/; p; }'
${TARG}.PostScript.toc: ${SRCS}
${TOOL_GROFF} -dTOC=1 ${ARGS_PS} -mdoc ${MAIN} ${TOCPROC} > $@.tmp

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.26 2008/04/29 17:42:35 tsutsui Exp $
# $NetBSD: Makefile,v 1.27 2008/10/25 22:27:34 apb Exp $
.include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
@ -48,7 +48,7 @@ HACKSRC= ${DISTRIBDIR}/utils/libhack
${CRUNCHBIN}: libhack.o
install.sub: ${DISTRIBDIR}/miniroot/install.sub
sed -e "/^VERSION=/s/=.*/=${DISTRIBREV}/" < $? > $@
${TOOL_SED} -e "/^VERSION=/s/=.*/=${DISTRIBREV}/" < $? > $@
CLEANFILES+= install.sub

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.37 2008/04/29 17:30:34 tsutsui Exp $
# $NetBSD: Makefile,v 1.38 2008/10/25 22:27:34 apb Exp $
.include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
@ -49,7 +49,7 @@ HACKSRC= ${DISTRIBDIR}/utils/libhack
${CRUNCHBIN}: libhack.o
install.sub: ${DISTRIBDIR}/miniroot/install.sub
sed -e "/^VERSION=/s/=.*/=${DISTRIBREV}/" < $? > $@
${TOOL_SED} -e "/^VERSION=/s/=.*/=${DISTRIBREV}/" < $? > $@
CLEANFILES+= install.sub

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.syspkg.mk,v 1.4 2008/10/19 22:05:20 apb Exp $
# $NetBSD: bsd.syspkg.mk,v 1.5 2008/10/25 22:27:34 apb Exp $
#
# This file is derived from:
#
@ -113,7 +113,7 @@ MKDIR?= /bin/mkdir -p
MV?= /bin/mv
PKG_TOOLS_BIN?= /usr/sbin
RM?= /bin/rm
SED?= /usr/bin/sed
SED?= ${TOOL_SED:U/usr/bin/sed}
SETENV?= /usr/bin/env
SH?= /bin/sh
TEST?= test # Shell builtin

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.46 2008/10/19 22:05:20 apb Exp $
# $NetBSD: Makefile.inc,v 1.47 2008/10/25 22:27:34 apb Exp $
#
# Makefile for sysinst
@ -107,24 +107,25 @@ msgtouch: ${DISTRIBVERDEP}
msg.def: msg.mi.${SYSINSTLANG} ${MSG_MD} msgtouch
${_MKTARGET_CREATE}
sed "s/@@VERSION@@/${DISTRIBVER}/" ${.ALLSRC} | \
${TOOL_SED} "s/@@VERSION@@/${DISTRIBVER}/" ${.ALLSRC} | \
${TOOL_AWK} -f ${UNIF_AWK} -v defines="${MD_OPTIONS}" > ${.TARGET}
menus.def: menus.mi ${MENUS_MD} msgtouch
${_MKTARGET_CREATE}
sed "s/@@VERSION@@/${DISTRIBVER}/" ${.ALLSRC} | \
${TOOL_SED} "s/@@VERSION@@/${DISTRIBVER}/" ${.ALLSRC} | \
${TOOL_AWK} -f ${UNIF_AWK} -v defines="${MD_OPTIONS}" > ${.TARGET}
sysinstmsgs.fmtcnt: msg.mi.${SYSINSTLANG} ${MSG_MD} msgtouch msg_defs.h
${_MKTARGET_CREATE}
sed "s/@@VERSION@@/${DISTRIBVER}/" ${.ALLSRC:M*.${SYSINSTLANG}} | \
${TOOL_SED} "s/@@VERSION@@/${DISTRIBVER}/" \
${.ALLSRC:M*.${SYSINSTLANG}} | \
${TOOL_AWK} -f ${UNIF_AWK} -v defines="${MD_OPTIONS}" | \
${HOST_SH} ${MSG_XLAT_SH} -c > ${.TARGET}
.for LANG in ${LANGUAGES:N${SYSINSTLANG}}
sysinstmsgs.${LANG}: msg.mi.${LANG} ${MSG_MD:S/.${SYSINSTLANG}$/.${LANG}/} msgtouch msg_defs.h sysinstmsgs.fmtcnt
${_MKTARGET_CREATE}
sed "s/@@VERSION@@/${DISTRIBVER}/" ${.ALLSRC:M*.${LANG}} | \
${TOOL_SED} "s/@@VERSION@@/${DISTRIBVER}/" ${.ALLSRC:M*.${LANG}} | \
${TOOL_AWK} -f ${UNIF_AWK} -v defines="${MD_OPTIONS}" | \
${HOST_SH} ${MSG_XLAT_SH} -f sysinstmsgs.fmtcnt > ${.TARGET}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2008/09/20 17:38:19 chris Exp $
# $NetBSD: Makefile,v 1.3 2008/10/25 22:27:34 apb Exp $
#
PROG= dhcpcd
@ -31,7 +31,7 @@ CLEANFILES= dhcpcd.conf.5 dhcpcd.8 \
.for f in dhcpcd-run-hooks dhcpcd.conf.5 dhcpcd.8 dhcpcd-run-hooks.8
${f}: ${f}.in
sed -e 's:@SYSCONFDIR@:/etc:g' -e 's:@DBDIR@:/var/db:g' \
${TOOL_SED} -e 's:@SYSCONFDIR@:/etc:g' -e 's:@DBDIR@:/var/db:g' \
-e 's:@HOOKDIR@:/libexec/dhcpcd-hooks:g' \
-e 's:@SCRIPT@:/libexec/dhcpcd-run-hooks:g' ${DIST}/${f}.in > $@
.endfor

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.rstart,v 1.1.1.1 2008/07/29 05:01:22 mrg Exp $
# $NetBSD: Makefile.rstart,v 1.2 2008/10/25 22:27:34 apb Exp $
.include <bsd.own.mk>
@ -9,7 +9,7 @@ FILESDIR= ${X11ETCDIR}/rstart/${CFDIR}
${_F}.sed: ${_F}
${_MKTARGET_CREATE}
rm -f ${.TARGET}
sed ${CFSED} < ${.ALLSRC} > ${.TARGET}
${TOOL_SED} ${CFSED} < ${.ALLSRC} > ${.TARGET}
CONFIGFILES+= ${_F}.sed
CLEANFILES+= ${_F}.sed

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:22 mrg Exp $
# $NetBSD: Makefile,v 1.2 2008/10/25 22:27:34 apb Exp $
NOMAN= yes
@ -32,7 +32,7 @@ CLEANFILES+= SshAskpass_ad.h
SshAskpass_ad.h: SshAskpass.ad
${_MKTARGET_CREATE}
rm -f ${.TARGET}
sed -n '/^[^!]/s/.*/"&",/p' <${.ALLSRC} > ${.TARGET}
${TOOL_SED} -n '/^[^!]/s/.*/"&",/p' <${.ALLSRC} > ${.TARGET}
LDADD+= -lXt -lSM -lICE -lXext -lX11
DPADD+= ${LIBXT} ${LIBSM} ${LIBICE} ${LIBXEXT} ${LIBX11}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2008/10/14 23:37:19 cube Exp $
# $NetBSD: Makefile,v 1.3 2008/10/25 22:27:34 apb Exp $
.include <bsd.own.mk>
@ -34,7 +34,7 @@ deftwmrc.c: system.twmrc deftwmrc.sed
echo ' * twm bindings file system.twmrc by the twm Makefile.' >>$@
echo ' */' >>$@
echo 'char *defTwmrc[] = {' >>$@
sed -f ${TWMDIR}/src/deftwmrc.sed \
${TOOL_SED} -f ${TWMDIR}/src/deftwmrc.sed \
< ${TWMDIR}/src/system.twmrc >>$@
echo ' (char *) 0 };' >>$@

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2008/08/30 07:15:17 rtr Exp $
# $NetBSD: Makefile,v 1.3 2008/10/25 22:27:34 apb Exp $
.include <bsd.own.mk>
@ -15,7 +15,8 @@ afterinstall:
.if ${MKUNPRIVED} != "no"
cd ${DESTDIR} \
&& find ./${X11FONTDIR} -name fonts.cache-1 \
| sed -e 's/$$/ type=file mode=0444 uname=${BINOWN} gname=${BINGRP}/' \
| ${TOOL_SED} -e \
's/$$/ type=file mode=0444 uname=${BINOWN} gname=${BINGRP}/' \
| ${METALOG.add}
.endif
.endif

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.fccache,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $
# $NetBSD: Makefile.fccache,v 1.2 2008/10/25 22:27:34 apb Exp $
.ifndef _MAKEFILE_FCCACHE_
_MAKEFILE_FCCACHE_=1
@ -13,7 +13,8 @@ afterinstall:
.if ${MKUNPRIVED} != "no"
cd ${DESTDIR} \
&& find ./${X11FONTDIR} -name fonts.cache-1 \
| sed -e 's/$$/ type=file mode=0444 uname=${BINOWN} gname=${BINGRP}/' \
| ${TOOL_SED} -e \
's/$$/ type=file mode=0444 uname=${BINOWN} gname=${BINGRP}/' \
| ${METALOG.add}
.endif

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $
# $NetBSD: Makefile,v 1.2 2008/10/25 22:27:35 apb Exp $
.include <bsd.own.mk>
@ -34,7 +34,8 @@ ${_F}.lt: ${_F}.pre
( \
${CPP} -undef -traditional \
< ${.ALLSRC} | ${X11TOOL_UNXCOMM} \
| sed -e '/^[^#][^ ]*:/s/://' -e '/^[^#].*[ ].*:/d'; \
| ${TOOL_SED} -e \
'/^[^#][^ ]*:/s/://' -e '/^[^#].*[ ].*:/d'; \
${CPP} -undef -traditional \
< ${.ALLSRC} | ${X11TOOL_UNXCOMM} ; \
) > ${.TARGET}
@ -58,6 +59,6 @@ realall: ${FILES}
build_subdirs:
.for _dir in ${SUBDIR}
mkdir ${.CURDIR}/${_dir}
printf '# $$NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:23 mrg Exp $$\n\nNLS_SUBDIR= ${_dir}\n\n.include "../Makefile.nls"\n' > ${.CURDIR}/${_dir}/Makefile
printf '# $$NetBSD: Makefile,v 1.2 2008/10/25 22:27:35 apb Exp $$\n\nNLS_SUBDIR= ${_dir}\n\n.include "../Makefile.nls"\n' > ${.CURDIR}/${_dir}/Makefile
.endfor

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.43 2008/04/20 07:11:22 mrg Exp $
# $NetBSD: Makefile,v 1.44 2008/10/25 22:27:35 apb Exp $
NOLINKLIB= # defined
NOLINT= # defined
@ -54,28 +54,28 @@ targets.o targets.so: targmatch.h Makefile
targmatch.h: config.bfd targmatch.sed
${_MKTARGET_CREATE}
sed -f ${.ALLSRC:M*.sed} ${.ALLSRC:M*.bfd} >$@
${TOOL_SED} -f ${.ALLSRC:M*.sed} ${.ALLSRC:M*.bfd} >$@
elf32-target.h: elfxx-target.h
${_MKTARGET_CREATE}
sed -e s/NN/32/g < $> > $@
${TOOL_SED} -e s/NN/32/g < $> > $@
elf64-target.h: elfxx-target.h
${_MKTARGET_CREATE}
sed -e s/NN/64/g < $> > $@
${TOOL_SED} -e s/NN/64/g < $> > $@
elf32-ia64.c: elfxx-ia64.c
${_MKTARGET_CREATE}
sed -e s/NN/32/g < $> > $@
${TOOL_SED} -e s/NN/32/g < $> > $@
elf64-ia64.c: elfxx-ia64.c
${_MKTARGET_CREATE}
sed -e s/NN/64/g < $> > $@
${TOOL_SED} -e s/NN/64/g < $> > $@
peigen.c: peXXigen.c
${_MKTARGET_CREATE}
sed -e s/XX/pe/g < $> > $@
${TOOL_SED} -e s/XX/pe/g < $> > $@
pepigen.c: peXXigen.c
${_MKTARGET_CREATE}
sed -e s/XX/pep/g < $> > $@
${TOOL_SED} -e s/XX/pep/g < $> > $@

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.6 2008/10/19 22:05:20 apb Exp $
# $NetBSD: Makefile,v 1.7 2008/10/25 22:27:35 apb Exp $
REQUIRETOOLS= yes
NOLINT= # defined
@ -41,7 +41,8 @@ libgcc.map: ${LIBGCC_S_OBJS} ${G_SHLIB_MKMAP} ${G_SHLIB_MAPFILES}
${NM} ${G_SHLIB_NM_FLAGS} ${LIBGCC_S_OBJS}; \
echo %%; \
cat ${G_SHLIB_MAPFILES} | \
sed -e "/^[ ]*#/d" -e 's/^%\(if\|else\|elif\|endif\|define\)/#\1/' | \
${TOOL_SED} -e "/^[ ]*#/d" \
-e 's/^%\(if\|else\|elif\|endif\|define\)/#\1/' | \
${CC} ${G_LIBGCC2_CFLAGS} ${G_INCLUDES} -E -xassembler-with-cpp -; \
} | ${TOOL_AWK} -f ${G_SHLIB_MKMAP} > ${.TARGET}.tmp
mv ${.TARGET}.tmp ${.TARGET}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.14 2003/10/21 10:01:20 lukem Exp $
# $NetBSD: Makefile,v 1.15 2008/10/25 22:27:35 apb Exp $
PROG= c++filt
CPPFLAGS+= -DMAIN
@ -12,4 +12,4 @@ CLEANFILES+= c++filt.1
c++filt.1: ${DIST}/binutils/doc/cxxfilt.man
${_MKTARGET_CREATE}
sed -e "s/@PROGRAM@/${PROG}/" < $> > $@
${TOOL_SED} -e "s/@PROGRAM@/${PROG}/" < $> > $@

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.12 2008/10/19 22:05:20 apb Exp $
# $NetBSD: Makefile,v 1.13 2008/10/25 22:27:35 apb Exp $
LIBISPRIVATE= yes
@ -196,21 +196,24 @@ build-rtl.c: rtl.c \
${G_RTL_H} real.h ${G_GCC_H} errors.h gtype-desc.h
${_MKTARGET_CREATE}
rm -f build-rtl.c
sed -e 's/<config[.]h/hconfig.h/' ${GNUHOSTDIST}/gcc/rtl.c >${.TARGET}
${TOOL_SED} -e 's/<config[.]h/hconfig.h/' \
${GNUHOSTDIST}/gcc/rtl.c >${.TARGET}
build-rtl.lo: ${HH}
build-print-rtl.c: print-rtl.c \
${G_RTL_H} ${G_TREE_H} hard-reg-set.h ${G_BASIC_BLOCK_H}
${_MKTARGET_CREATE}
rm -f buid-print-rtl.c
sed -e 's/<config[.]h/hconfig.h/' ${GNUHOSTDIST}/gcc/print-rtl.c >${.TARGET}
${TOOL_SED} -e 's/<config[.]h/hconfig.h/' \
${GNUHOSTDIST}/gcc/print-rtl.c >${.TARGET}
build-print-rtl.lo: ${HH}
build-bitmap.c: bitmap.c \
${G_RTL_H} flags.h ${G_BASIC_BLOCK_H} ${REGS_H} ${G_GCC_H} gtype-desc.h
${_MKTARGET_CREATE}
rm -f build-bitmap.c
sed -e 's/<config[.]h/hconfig.h/' ${GNUHOSTDIST}/gcc/bitmap.c >${.TARGET}
${TOOL_SED} -e 's/<config[.]h/hconfig.h/' \
${GNUHOSTDIST}/gcc/bitmap.c >${.TARGET}
build-bitmap.lo: ${HH}
build-errors.c: errors.c errors.h
@ -223,14 +226,16 @@ build-varray.c: varray.c \
${G_RTL_H} ${G_GCC_H} ${TREE_H} bitmap.h errors.h
${_MKTARGET_CREATE}
rm -f build-varray.c
sed -e 's/<config[.]h/hconfig.h/' ${GNUHOSTDIST}/gcc/varray.c >${.TARGET}
${TOOL_SED} -e 's/<config[.]h/hconfig.h/' \
${GNUHOSTDIST}/gcc/varray.c >${.TARGET}
build-varray.lo: ${HH} gtype-desc.h
build-ggc-none.c: ggc-none.c \
${G_GCC_H} gtype-desc.h
${_MKTARGET_CREATE}
rm -f build-ggc-none.c
sed -e 's/<config[.]h/hconfig.h/' ${GNUHOSTDIST}/gcc/ggc-none.c >${.TARGET}
${TOOL_SED} -e 's/<config[.]h/hconfig.h/' \
${GNUHOSTDIST}/gcc/ggc-none.c >${.TARGET}
build-ggc-none.lo: ${HH}
#

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 2008/05/03 14:48:30 lukem Exp $
# $NetBSD: Makefile,v 1.4 2008/10/25 22:27:35 apb Exp $
.include <bsd.own.mk>
@ -38,28 +38,28 @@ targets.o targets.so: targmatch.h Makefile
targmatch.h: config.bfd targmatch.sed
${_MKTARGET_CREATE}
sed -f ${.ALLSRC:M*.sed} ${.ALLSRC:M*.bfd} >$@
${TOOL_SED} -f ${.ALLSRC:M*.sed} ${.ALLSRC:M*.bfd} >$@
elf32-target.h: elfxx-target.h
${_MKTARGET_CREATE}
sed -e s/NN/32/g < $> > $@
${TOOL_SED} -e s/NN/32/g < $> > $@
elf64-target.h: elfxx-target.h
${_MKTARGET_CREATE}
sed -e s/NN/64/g < $> > $@
${TOOL_SED} -e s/NN/64/g < $> > $@
elf32-ia64.c: elfxx-ia64.c
${_MKTARGET_CREATE}
sed -e s/NN/32/g < $> > $@
${TOOL_SED} -e s/NN/32/g < $> > $@
elf64-ia64.c: elfxx-ia64.c
${_MKTARGET_CREATE}
sed -e s/NN/64/g < $> > $@
${TOOL_SED} -e s/NN/64/g < $> > $@
peigen.c: peXXigen.c
${_MKTARGET_CREATE}
sed -e s/XX/pe/g < $> > $@
${TOOL_SED} -e s/XX/pe/g < $> > $@
pepigen.c: peXXigen.c
${_MKTARGET_CREATE}
sed -e s/XX/pep/g < $> > $@
${TOOL_SED} -e s/XX/pep/g < $> > $@

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 2008/05/03 14:48:31 lukem Exp $
# $NetBSD: Makefile,v 1.4 2008/10/25 22:27:35 apb Exp $
LIBISPRIVATE= yes
NOGCCERROR=
@ -149,7 +149,7 @@ run-hw: Makefile
done ; \
for hw in $$f; do \
echo $$hw; \
done | sed -e 's/^.*\(hw_.*\)\.c/\1/' \
done | ${TOOL_SED} -e 's/^.*\(hw_.*\)\.c/\1/' \
-e 's/^/extern const device_descriptor /' \
-e 's/$$/_device_descriptor\[\];/' \
> tmp-hw.h
@ -162,7 +162,7 @@ run-hw: Makefile
done ; \
for hw in $$f; do \
echo $$hw; \
done | sed -e 's/^.*\(hw_.*\)\.c/\1/' \
done | ${TOOL_SED} -e 's/^.*\(hw_.*\)\.c/\1/' \
-e 's/^/ /' \
-e 's/$$/_device_descriptor,/' > tmp-hw.c
${MIC} tmp-hw.h hw.h
@ -185,7 +185,7 @@ run-pk: $(PACKAGE_SRC)
done ; \
for pk in $$f; do \
echo $$pk; \
done | sed -e 's/^.*pk_\(.*\)\.c/\1/' \
done | ${TOOL_SED} -e 's/^.*pk_\(.*\)\.c/\1/' \
-e 's/^/extern package_create_instance_callback pk_/' \
-e 's/$$/_create_instance;/' > tmp-pk.h
${MIC} tmp-pk.h pk.h
@ -196,7 +196,7 @@ DPSRCS+= ${PK_H}
DEFINES_H= defines.h
${DEFINES_H}: run-defines
run-defines:
sed -n -e '/^#define HAVE_/s/ 1$$/",/' \
${TOOL_SED} -n -e '/^#define HAVE_/s/ 1$$/",/' \
-e '/^#define HAVE_/s//"HAVE_/p' \
< ${.CURDIR}/../arch/${MACHINE_ARCH}/config.h > tmp-defines.h
${MIC} tmp-defines.h defines.h

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.16 2006/06/02 22:16:23 mrg Exp $
# $NetBSD: Makefile.inc,v 1.17 2008/10/25 22:27:35 apb Exp $
# $FreeBSD: src/gnu/usr.bin/groff/Makefile.inc,v 2.7 2003/05/01 13:22:18 ru Exp $
@ -110,12 +110,13 @@ CLEANFILES+= ${GROFFYSRCS:.y=.cpp} ${GROFFYSRCS:.y=_tab.h}
.SUFFIXES: .man .1 .2 .3 .4 .5 .6 .7 .8
version=`cat $(GROFF_DIST)/VERSION`
revision=`sed -e 's/^0$$//' -e 's/^[1-9].*$$/.&/' $(GROFF_DIST)/REVISION`
revision=`${TOOL_SED} -e 's/^0$$//' -e 's/^[1-9].*$$/.&/' \
$(GROFF_DIST)/REVISION`
.man.8 .man.7 .man.6 .man.5 .man.4 .man.3 .man.2 .man.1:
${_MKTARGET_CREATE}
rm -f $@
sed -e "s;@BINDIR@;${BINDIR};g" \
${TOOL_SED} -e "s;@BINDIR@;${BINDIR};g" \
-e "s;@FONTDIR@;$(fontdir);g" \
-e "s;@LOCALFONTDIR@;$(localfontdir);g" \
-e "s;@LEGACYFONTDIR@;$(legacyfontdir);g" \
@ -150,7 +151,7 @@ revision=`sed -e 's/^0$$//' -e 's/^[1-9].*$$/.&/' $(GROFF_DIST)/REVISION`
.sh .pl:
${_MKTARGET_CREATE}
rm -f $@
sed -e "s|@BINDIR@|${BINDIR}|g" \
${TOOL_SED} -e "s|@BINDIR@|${BINDIR}|g" \
-e "s;@FONTDIR@;$(fontdir);g" \
-e 's|@GROFF_BIN_PATH_SETUP@|GROFF_RUNTIME="$${GROFF_BIN_PATH=/usr/bin}:"|g' \
-e "s|@SEP@|:|" \

View File

@ -1,7 +1,9 @@
# $NetBSD: Makefile.tty,v 1.7 2003/10/21 10:01:20 lukem Exp $
# $NetBSD: Makefile.tty,v 1.8 2008/10/25 22:27:35 apb Exp $
# $FreeBSD: src/gnu/usr.bin/groff/font/Makefile.tty,v 2.7 2001/04/17 12:36:42 ru Exp $
.include <bsd.own.mk>
all: ${FONTS}
FONTS?=R I B BI S L CW
@ -15,7 +17,7 @@ LPI=6
$(FONTS): R.proto
${_MKTARGET_CREATE}
(charwidth=`expr $(RES) / $(CPI)` ; \
sed -e "s/^name [A-Z]*$$/name ${.TARGET}/" \
${TOOL_SED} -e "s/^name [A-Z]*$$/name ${.TARGET}/" \
-e "s/^\\([^ ]*\\) [0-9]+ /\\1 $$charwidth /" \
-e "s/^spacewidth [0-9]+$$/spacewidth $$charwidth/" \
-e "s/^internalname .*$$/internalname $@/" \
@ -27,7 +29,7 @@ $(FONTS): R.proto
DESC: DESC.proto
${_MKTARGET_CREATE}
sed -e "s/^res .*$$/res $(RES)/" \
${TOOL_SED} -e "s/^res .*$$/res $(RES)/" \
-e "s/^hor .*$$/hor `expr $(RES) / $(CPI)`/" \
-e "s/^vert .*$$/vert `expr $(RES) / $(LPI)`/" \
-e "s/^fonts .*$$/fonts `set $(FONTS); echo $$#` $(FONTS)/" \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.5 2003/10/21 10:01:20 lukem Exp $
# $NetBSD: Makefile,v 1.6 2008/10/25 22:27:35 apb Exp $
# $FreeBSD: src/gnu/usr.bin/groff/font/devps/Makefile,v 1.3 2003/05/01 13:22:18 ru Exp $
@ -36,7 +36,7 @@ DESC: DESC.in
${PSFILES}:
${_MKTARGET_CREATE}
rm -f $@
sed -f ${DIST_DIR}/psstrip.sed $? >$@
${TOOL_SED} -f ${DIST_DIR}/psstrip.sed $? >$@
.include "../Makefile.dev"

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.9 2008/05/03 14:48:30 lukem Exp $
# $NetBSD: Makefile,v 1.10 2008/10/25 22:27:35 apb Exp $
# $FreeBSD: src/gnu/usr.bin/groff/src/libs/libgroff/Makefile,v 1.5 2003/05/01 13:22:19 ru Exp $
@ -32,5 +32,5 @@ version.cpp: ${GROFF_DIST}/VERSION ${GROFF_DIST}/REVISION
echo 'const char *version_string = "'$$v'";' ;\
echo 'const char *revision_string = "'$$r'";' ;\
echo 'extern "C" const char *Version_string = "'$$v'.'$$r'";' |\
sed -e 's/\.0\"/\"/'; \
${TOOL_SED} -e 's/\.0\"/\"/'; \
) > ${.TARGET}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.9 2008/02/26 03:20:07 lukem Exp $
# $NetBSD: Makefile,v 1.10 2008/10/25 22:27:35 apb Exp $
# $FreeBSD: src/gnu/usr.bin/groff/src/roff/troff/Makefile,v 1.4 2003/05/01 13:22:20 ru Exp $
@ -17,8 +17,10 @@ USETBL=
majorminor.cpp: ${GROFF_DIST}/VERSION ${GROFF_DIST}/REVISION
${_MKTARGET_CREATE}
(\
maj=`sed -e 's/^\([^.]*\)\..*$$/\1/' ${GROFF_DIST}/VERSION` ;\
min=`sed -e 's/^[^.]*\.\([0-9]*\).*$$/\1/' ${GROFF_DIST}/VERSION` ;\
maj=`${TOOL_SED} -e 's/^\([^.]*\)\..*$$/\1/' \
${GROFF_DIST}/VERSION` ;\
min=`${TOOL_SED} -e 's/^[^.]*\.\([0-9]*\).*$$/\1/' \
${GROFF_DIST}/VERSION` ;\
r=`cat ${GROFF_DIST}/REVISION` ;\
echo 'const char *major_version = "'$$maj'";' ;\
echo 'const char *minor_version = "'$$min'";' ;\

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.23 2006/02/06 18:29:48 wiz Exp $
# $NetBSD: Makefile,v 1.24 2008/10/25 22:27:35 apb Exp $
# $FreeBSD: src/gnu/usr.bin/groff/tmac/Makefile,v 1.41 2003/05/01 13:22:21 ru Exp $
@ -54,7 +54,7 @@ FILES+= $f-s
FILESNAME_$f-s=mdoc/$f
$f-s: $f
${_MKTARGET_CREATE}
sed -f ${DIST_DIR}/strip.sed ${.ALLSRC} > ${.TARGET}
${TOOL_SED} -f ${DIST_DIR}/strip.sed ${.ALLSRC} > ${.TARGET}
.endfor
.for f in ${STRIPFILES}
@ -62,7 +62,7 @@ FILES+= $f-s
FILESNAME_$f-s=$f
$f-s: $f
${_MKTARGET_CREATE}
sed -f ${DIST_DIR}/strip.sed ${.ALLSRC} > ${.TARGET}
${TOOL_SED} -f ${DIST_DIR}/strip.sed ${.ALLSRC} > ${.TARGET}
.endfor
.for f in ${SPECIALFILES}
@ -70,7 +70,7 @@ FILES+= $f-s
FILESNAME_$f-s=$f
$f-s: $f
${_MKTARGET_CREATE}
sed -e "s;@TMAC_AN_PREFIX@;${tmac_an_prefix};g" \
${TOOL_SED} -e "s;@TMAC_AN_PREFIX@;${tmac_an_prefix};g" \
-e "s;@TMAC_S_PREFIX@;${tmac_s_prefix};g" \
-e "s;@PNMTOPS_NOSETPAGE@;pnmtops -nosetpage;g" \
${.ALLSRC} > ${.TARGET}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.29 2003/12/04 23:32:37 keihan Exp $
# $NetBSD: Makefile,v 1.30 2008/10/25 22:27:35 apb Exp $
.include <bsd.own.mk>
@ -56,7 +56,7 @@ realall: send-pr send-pr.1 send-pr.el install-sid
send-pr: send-pr.sh Makefile
${_MKTARGET_CREATE}
sed -e 's,xVERSIONx,$(VERSION),' \
${TOOL_SED} -e 's,xVERSIONx,$(VERSION),' \
-e 's,xGNATS_ROOTx,$(GNATS_ROOT),' \
-e 's,xGNATS_ADDRx,$(GNATS_ADDR),' \
-e 's,xGNATS_SITEx,$(GNATS_SITE),' \
@ -72,14 +72,14 @@ send-pr: send-pr.sh Makefile
install-sid: install-sid.sh Makefile
${_MKTARGET_CREATE}
sed -e 's,xBINDIRx,$(bindir),g' \
${TOOL_SED} -e 's,xBINDIRx,$(bindir),g' \
-e 's,xVERSIONx,$(VERSION),g' $(srcdir)/install-sid.sh > $@-t
mv -f $@-t $@
chmod 755 $@
send-pr.el: send-pr-el.in Makefile
${_MKTARGET_CREATE}
sed -e 's,xVERSIONx,$(VERSION),' \
${TOOL_SED} -e 's,xVERSIONx,$(VERSION),' \
-e 's,xGNATS_ROOTx,$(GNATS_ROOT),' \
-e 's,xGNATS_SITEx,$(GNATS_SITE),' \
-e 's,xDATADIRx,$(datadir),' \
@ -91,7 +91,7 @@ send-pr.el: send-pr-el.in Makefile
send-pr.1: send-pr.man Makefile
${_MKTARGET_CREATE}
sed -e 's,xGNATS_ROOTx,$(GNATS_ROOT),g' \
${TOOL_SED} -e 's,xGNATS_ROOTx,$(GNATS_ROOT),g' \
-e 's,xVERSIONx,$(VERSION),g' $(srcdir)/send-pr.man > $@-t
mv -f $@-t $@

View File

@ -122,7 +122,7 @@ states.texi s-usage.texi categ.texi send-pr.sh
all: send-pr install-sid send-pr.elc send-pr.1
send-pr: send-pr.sh Makefile
sed -e 's,xVERSIONx,$(VERSION),' \
${TOOL_SED} -e 's,xVERSIONx,$(VERSION),' \
-e 's,xGNATS_ROOTx,$(GNATS_ROOT),' \
-e 's,xGNATS_ADDRx,$(GNATS_ADDR),' \
-e 's,xGNATS_SITEx,$(GNATS_SITE),' \
@ -137,13 +137,13 @@ send-pr: send-pr.sh Makefile
chmod 755 $@
install-sid: install-sid.sh Makefile
sed -e 's,xBINDIRx,$(bindir),g' \
${TOOL_SED} -e 's,xBINDIRx,$(bindir),g' \
-e 's,xVERSIONx,$(VERSION),g' $(srcdir)/install-sid.sh > $@-t
mv $@-t $@
chmod 755 $@
send-pr.el: send-pr-el.in Makefile
sed -e 's,xVERSIONx,$(VERSION),' \
${TOOL_SED} -e 's,xVERSIONx,$(VERSION),' \
-e 's,xGNATS_ROOTx,$(GNATS_ROOT),' \
-e 's,xGNATS_SITEx,$(GNATS_SITE),' \
-e 's,xDATADIRx,$(datadir),' \
@ -178,13 +178,14 @@ install-gnats-dist:
$(INSTALL_DATA) $(srcdir)/README $(datadir)/gnats/dist/README
$(INSTALL_DATA) $(srcdir)/INSTALL $(datadir)/gnats/dist/INSTALL
$(INSTALL_DATA) $(srcdir)/MANIFEST $(datadir)/gnats/dist/MANIFEST
sed -e 's/"DEFAULT_RELEASE") ".*"/"DEFAULT_RELEASE") "@''DEFAULT_RELEASE@"/' \
${TOOL_SED} \
-e 's/"DEFAULT_RELEASE") ".*"/"DEFAULT_RELEASE") "@''DEFAULT_RELEASE@"/' \
-e 's/"SUBMITTER") ".*"/"SUBMITTER") "@''SUBMITTER@"/' \
-e 's/"DATADIR") ".*"/"DATADIR") "@''DATADIR@"/' \
send-pr.el > $(datadir)/gnats/dist/send-pr-el.inT
mv $(datadir)/gnats/dist/send-pr-el.inT \
$(datadir)/gnats/dist/send-pr-el.in
sed -e 's/GNATS_ROOT=.*/GNATS_ROOT=/' \
${TOOL_SED} -e 's/GNATS_ROOT=.*/GNATS_ROOT=/' \
-e 's/SUBMITTER=.*/SUBMITTER=@''SUBMITTER@/' \
-e 's/DEFAULT_RELEASE=.*/DEFAULT_RELEASE="@''DEFAULT_RELEASE@"/' \
-e 's/DEFAULT_ORGANIZATION=.*/DEFAULT_ORGANIZATION=/' \
@ -192,7 +193,7 @@ install-gnats-dist:
send-pr > $(datadir)/gnats/dist/send-pr.sh-t
mv $(datadir)/gnats/dist/send-pr.sh-t \
$(datadir)/gnats/dist/send-pr.sh
sed -e 's/^BINDIR=.*/BINDIR=@''BINDIR@/' \
${TOOL_SED} -e 's/^BINDIR=.*/BINDIR=@''BINDIR@/' \
install-sid > $(datadir)/gnats/dist/install-sid.sT
mv $(datadir)/gnats/dist/install-sid.sT \
$(datadir)/gnats/dist/install-sid.sh
@ -237,7 +238,7 @@ version.texi: Makefile
mv $@-t $@
send-pr.1: Makefile
sed -e 's,xGNATS_ROOTx,$(GNATS_ROOT),g' \
${TOOL_SED} -e 's,xGNATS_ROOTx,$(GNATS_ROOT),g' \
-e 's,xVERSIONx,$(VERSION),g' $(srcdir)/send-pr.man > $@-t
mv $@-t $@
@ -252,7 +253,7 @@ send-pr.dvi: version.texi
gnats-build: stamp-gnats
stamp-gnats: Makefile
sed -e 's,^GNATS_ROOT =.*,GNATS_ROOT = $(GNATS_ROOT),' \
${TOOL_SED} -e 's,^GNATS_ROOT =.*,GNATS_ROOT = $(GNATS_ROOT),' \
-e 's,^GNATS_ADDR =.*,GNATS_ADDR = $(GNATS_ADDR),' \
-e 's,^GNATS_SITE =.*,GNATS_SITE = $(GNATS_SITE),' \
-e 's,^DEFAULT_RELEASE =.*,DEFAULT_RELEASE = $(DEFAULT_RELEASE),' \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.21 2008/09/02 08:38:35 christos Exp $
# $NetBSD: Makefile,v 1.22 2008/10/25 22:27:35 apb Exp $
.include <bsd.own.mk>
@ -11,7 +11,7 @@ FILES= epsf.tex texinfo.cat texinfo.dtd texinfo.tex texinfo.xsl
VERSION!= sed -n "s/^\#define VERSION \"\(.*\)\"/\1/p" ${NETBSDSRCDIR}/gnu/usr.bin/texinfo/common/config.h
texinfo.cat: texinfo-cat.in
sed 's/__VERSION__/${VERSION}/g' ${.ALLSRC} >${.TARGET}
${TOOL_SED} 's/__VERSION__/${VERSION}/g' ${.ALLSRC} >${.TARGET}
realall: texinfo.cat

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2006/02/04 16:22:53 christos Exp $
# $NetBSD: Makefile,v 1.2 2008/10/25 22:27:35 apb Exp $
.include "${.CURDIR}/../Makefile.inc"
@ -11,7 +11,7 @@ CLEANFILES+=.fname cvsbug
cvsbug: cvsbug.in
${_MKTARGET_CREATE}
sed -e 's,@PACKAGE_BUGREPORT@,bug-cvs@gnu.org,g' \
${TOOL_SED} -e 's,@PACKAGE_BUGREPORT@,bug-cvs@gnu.org,g' \
-e "s,@VERSION@,`cat .fname`,g" ${.ALLSRC} > ${.TARGET}
chmod a+x ${.TARGET}
@ -20,7 +20,7 @@ cvsbug: .fname
.fname: configure
${_MKTARGET_CREATE}
echo > .fname \
cvs-`sed < ${.ALLSRC} \
cvs-`${TOOL_SED} < ${.ALLSRC} \
-e '/PACKAGE_VERSION/!d' \
-e 's/[^0-9.]*\([0-9.]*\).*/\1/' \
-e q`

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 2008/05/01 15:35:50 jmmv Exp $
# $NetBSD: Makefile,v 1.4 2008/10/25 22:27:35 apb Exp $
.include <bsd.own.mk>
@ -22,7 +22,7 @@ FILES+= atf.footer.subr \
realall: atf-c.pc
atf-c.pc: atf-c.pc.in
sed -e 's,__ATF_VERSION__,0.5,g' \
${TOOL_SED} -e 's,__ATF_VERSION__,0.5,g' \
-e 's,__CC__,gcc,g' \
-e 's,__INCLUDEDIR__,/usr/include,g' \
-e 's,__LIBDIR__,/usr/lib,g' \
@ -31,7 +31,7 @@ CLEANFILES+= atf-c.pc
realall: atf-c++.pc
atf-c++.pc: atf-c++.pc.in
sed -e 's,__ATF_VERSION__,0.5,g' \
${TOOL_SED} -e 's,__ATF_VERSION__,0.5,g' \
-e 's,__CXX__,g++,g' \
-e 's,__INCLUDEDIR__,/usr/include,g' \
-e 's,__LIBDIR__,/usr/lib,g' \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 2008/05/01 15:35:50 jmmv Exp $
# $NetBSD: Makefile,v 1.4 2008/10/25 22:27:35 apb Exp $
.include <bsd.own.mk>
@ -19,7 +19,7 @@ MAN+= atf-c-api.3 atf-c++-api.3 atf-sh-api.3
CLEANFILES+= atf.7 atf.7.tmp
atf.7: atf.7.in
sed -e 's,__DOCDIR__,/usr/share/doc/atf,g' \
${TOOL_SED} -e 's,__DOCDIR__,/usr/share/doc/atf,g' \
<${SRCDIR}/doc/atf.7.in >atf.7.tmp
mv atf.7.tmp atf.7

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.5 2008/10/19 22:05:20 apb Exp $
# $NetBSD: Makefile,v 1.6 2008/10/25 22:27:35 apb Exp $
#
# Makefile for the tp documents:
# design: TP design/source guide
@ -61,16 +61,17 @@ appendix_c:
appendix_a:
ctags -x $(SRCS) \
| ${TOOL_AWK} '{printf("%s\t%s\t%s\n", $$1, $$3, $$2)}' \
| sed -e 's-../../sys/netargo/--' > index_by_func.nr
| ${TOOL_SED} -e 's-../../sys/netargo/--' > index_by_func.nr
format -P$(PRINTER) appendix_a.nr
appendix_b:
ctags -x $(SRCS) \
| ${TOOL_AWK} '{printf("%s\t%s\t%s\n", $$3, $$1, $$2)}' \
| sed -e 's-../../sys/netargo/--' \
| ${TOOL_SED} -e 's-../../sys/netargo/--' \
| sort \
| fmtxref -w 80 \
| sed -e 's/ / /' \
-e 's/ / /' \
| ${TOOL_SED} \
-e 's/ / /' \
-e 's/ / /' \
> index_by_file.nr
format -P$(PRINTER) appendix_b.nr

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.4 2006/11/04 03:46:19 tnozaki Exp $
# $NetBSD: Makefile.inc,v 1.5 2008/10/25 22:27:35 apb Exp $
.PATH: ${.CURDIR}/CP
@ -12,7 +12,7 @@ mapper.dir.CP: ${.CURDIR}/CP/CP.part ${.CURDIR}/CP/mapper.dir.CP.src
(\
echo "# CP";\
for i in ${PART_CP}; do \
f=`echo $$i | sed 's/:/@/'`; \
f=`echo $$i | ${TOOL_SED} 's/:/@/'`; \
printf '%-32s%-16s%s\n' CP$$i'/UCS' \
mapper_std CP/CP$$f'%UCS.mps';\
printf '%-32s%-16s%s\n' UCS/CP$$i \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.1 2006/06/15 15:34:20 tnozaki Exp $
# $NetBSD: Makefile.inc,v 1.2 2008/10/25 22:27:35 apb Exp $
.PATH: ${.CURDIR}/GEORGIAN
@ -12,7 +12,7 @@ mapper.dir.GEORGIAN: ${.CURDIR}/GEORGIAN/GEORGIAN.part
(\
echo "# GEORGIAN";\
for i in ${PART_GEORGIAN}; do \
f=`echo $$i | sed 's/:/@/'`; \
f=`echo $$i | ${TOOL_SED} 's/:/@/'`; \
printf '%-32s%-16s%s\n' GEORGIAN-$$i'/UCS' \
mapper_std GEORGIAN/GEORGIAN-$$f'%UCS.mps';\
printf '%-32s%-16s%s\n' UCS/GEORGIAN-$$i \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.1 2006/03/13 19:45:36 tnozaki Exp $
# $NetBSD: Makefile.inc,v 1.2 2008/10/25 22:27:35 apb Exp $
.PATH: ${.CURDIR}/APPLE
@ -13,7 +13,7 @@ SUBDIR_MAC:= APPLE
.if !exists(${.CURDIR}/MAC/MAC${i:S/:/@/}.src)
MAC${i:S/:/@/}.src: MAC.src
${_MKTARGET_CREATE}
sed 's/changeme/$i/' $> > $@
${TOOL_SED} 's/changeme/$i/' $> > $@
CLEANFILES+= MAC${i:S/:/@/}.src
.endif
.endfor

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.1 2006/04/01 04:13:22 tnozaki Exp $
# $NetBSD: Makefile.inc,v 1.2 2008/10/25 22:27:35 apb Exp $
.PATH: ${.CURDIR}/AST
@ -12,7 +12,7 @@ SUBDIR_ARMSCII:= AST
.if !exists(${.CURDIR}/AST/ARMSCII-${i:S/:/@/}.src)
ARMSCII-${i:S/:/@/}.src: ARMSCII.src
${_MKTARGET_CREATE}
sed 's/ARMSCII-x/ARMSCII-$i/' $> > $@
${TOOL_SED} 's/ARMSCII-x/ARMSCII-$i/' $> > $@
CLEANFILES+= ARMSCII-${i:S/:/@/}.src
.endif
.endfor

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.1 2006/06/19 17:28:25 tnozaki Exp $
# $NetBSD: Makefile.inc,v 1.2 2008/10/25 22:27:35 apb Exp $
.PATH: ${.CURDIR}/BIG5
@ -19,8 +19,9 @@ Big5_$i_variable!= sed \
# XXX: FIXME
Big5-${i:S/:/@/}.src: Big5.src Big5.variable
${_MKTARGET_CREATE}
sed -e 's/encoding/Big5-$i/' -e 's/variable/${Big5_$i_variable}/' \
${.CURDIR}/BIG5/Big5.src > $@
${TOOL_SED} -e 's/encoding/Big5-$i/' \
-e 's/variable/${Big5_$i_variable}/' \
${.CURDIR}/BIG5/Big5.src > $@
CLEANFILES+= Big5-${i:S/:/@/}.src
.endif
.endfor

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.3 2003/10/21 10:01:21 lukem Exp $
# $NetBSD: Makefile.inc,v 1.4 2008/10/25 22:27:35 apb Exp $
.PATH: ${.CURDIR}/CP
@ -10,7 +10,7 @@ SEP_CP:=
.if !exists(${.CURDIR}/CP/CP${i:S/:/@/}.src)
CP${i:S/:/@/}.src: CP.src
${_MKTARGET_CREATE}
sed 's/CPx/CP$i/' $> > $@
${TOOL_SED} 's/CPx/CP$i/' $> > $@
CLEANFILES+= CP${i:S/:/@/}.src
.endif
.endfor

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.1 2007/04/01 18:52:31 tnozaki Exp $
# $NetBSD: Makefile.inc,v 1.2 2008/10/25 22:27:36 apb Exp $
.PATH: ${.CURDIR}/DEC
@ -10,7 +10,7 @@ SEP_DEC:=
.if !exists(${.CURDIR}/DEC/DEC${i:S/:/@/}.src)
DEC${i:S/:/@/}.src: DEC.src
${_MKTARGET_CREATE}
sed 's/DECx/DEC$i/' $> > $@
${TOOL_SED} 's/DECx/DEC$i/' $> > $@
CLEANFILES+= DEC${i:S/:/@/}.src
.endif
.endfor

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.3 2003/10/21 10:01:21 lukem Exp $
# $NetBSD: Makefile.inc,v 1.4 2008/10/25 22:27:36 apb Exp $
.PATH: ${.CURDIR}/EBCDIC
@ -8,6 +8,6 @@ CODE:= EBCDIC
.for i in ${EBCDIC_PART}
EBCDIC-${i:S/:/@/}.src: EBCDIC.src
${_MKTARGET_CREATE}
sed 's/EBCDIC-x/EBCDIC-$i/' $> > $@
${TOOL_SED} 's/EBCDIC-x/EBCDIC-$i/' $> > $@
CLEANFILES:= ${CLEANFILES} EBCDIC-${i:S/:/@/}.src
.endfor

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.1 2006/06/15 15:34:20 tnozaki Exp $
# $NetBSD: Makefile.inc,v 1.2 2008/10/25 22:27:36 apb Exp $
.PATH: ${.CURDIR}/GEORGIAN
@ -9,7 +9,7 @@ SEP_GEORGIAN:= -
.for i in ${GEORGIAN_PART}
GEORGIAN-${i}.src: GEORGIAN.src
${_MKTARGET_CREATE}
sed -e 's/GEORGIANx/GEORGIAN-${i}/' \
${TOOL_SED} -e 's/GEORGIANx/GEORGIAN-${i}/' \
-e 's/GEORGIANy/GEORGIAN-${i:S/-/:/}/' $> > $@
CLEANFILES+= GEORGIAN-${i}.src
.endfor

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.3 2003/10/21 10:01:21 lukem Exp $
# $NetBSD: Makefile.inc,v 1.4 2008/10/25 22:27:36 apb Exp $
.PATH: ${.CURDIR}/ISO-8859
@ -8,6 +8,6 @@ CODE:= ISO-8859
.for i in ${ISO-8859_PART}
ISO-8859-$i.src: ISO-8859.src
${_MKTARGET_CREATE}
sed 's/ISO-8859-x/ISO-8859-$i/' $> > $@
${TOOL_SED} 's/ISO-8859-x/ISO-8859-$i/' $> > $@
CLEANFILES+= ISO-8859-$i.src
.endfor

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.3 2003/10/21 10:01:21 lukem Exp $
# $NetBSD: Makefile.inc,v 1.4 2008/10/25 22:27:36 apb Exp $
.PATH: ${.CURDIR}/ISO646
@ -8,6 +8,6 @@ CODE:= ISO646
.for i in ${ISO646_PART}
ISO646-${i:S/:/@/}.src: ISO646.src
${_MKTARGET_CREATE}
sed 's/ISO646-x/ISO646-$i/' $> > $@
${TOOL_SED} 's/ISO646-x/ISO646-$i/' $> > $@
CLEANFILES:= ${CLEANFILES} ISO646-${i:S/:/@/}.src
.endfor

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.1 2006/04/08 14:15:48 tnozaki Exp $
# $NetBSD: Makefile.inc,v 1.2 2008/10/25 22:27:36 apb Exp $
.PATH: ${.CURDIR}/KOI
@ -10,7 +10,7 @@ SEP_KOI:=
.if !exists(${.CURDIR}/KOI/KOI${i:S/:/@/}.src)
KOI${i:S/:/@/}.src: KOI.src
${_MKTARGET_CREATE}
sed 's/KOIx/KOI$i/' $> > $@
${TOOL_SED} 's/KOIx/KOI$i/' $> > $@
CLEANFILES+= KOI${i:S/:/@/}.src
.endif
.endfor

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.4 2005/03/05 18:05:15 tnozaki Exp $
# $NetBSD: Makefile.inc,v 1.5 2008/10/25 22:27:36 apb Exp $
.PATH: ${.CURDIR}/UTF
@ -25,6 +25,10 @@ UTF-7-var= utf7
.for i in ${UTF_PART}
UTF-$i.src: UTF.src
${_MKTARGET_CREATE}
sed 's/UTF-x/UTF-$i/;s/UTF-mod/${UTF-$i-mod}/;s/UTF-var/${UTF-$i-var}/' $> > $@
${TOOL_SED} \
-e 's/UTF-x/UTF-$i/' \
-e 's/UTF-mod/${UTF-$i-mod}/' \
-e 's/UTF-var/${UTF-$i-var}/' \
$> > $@
CLEANFILES+= UTF-$i.src
.endfor

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.26 2007/03/14 15:49:26 tnozaki Exp $
# $NetBSD: Makefile,v 1.27 2008/10/25 22:27:36 apb Exp $
NOMAN= # defined
@ -313,13 +313,13 @@ ${locale}.out: ${LOCALESRC_${locale}}.src \
${NETBSDSRCDIR}/lib/libc/locale/runetable.c
${_MKTARGET_CREATE}
${CPP} -I${.CURDIR} < ${.CURDIR}/${LOCALESRC_${locale}}.src | \
sed -e '/^#/d' | ${TOOL_MKLOCALE} -o ${.TARGET}
${TOOL_SED} -e '/^#/d' | ${TOOL_MKLOCALE} -o ${.TARGET}
.endfor
.SUFFIXES: .src .out
.src.out:
${_MKTARGET_CREATE}
${CPP} -I${.CURDIR} < ${.IMPSRC} | sed -e '/^#/d' | \
${CPP} -I${.CURDIR} < ${.IMPSRC} | ${TOOL_SED} -e '/^#/d' | \
${TOOL_MKLOCALE} -o ${.TARGET}
# does not work

View File

@ -1,5 +1,5 @@
# from: @(#)Makefile 5.9 (Berkeley) 7/1/91
# $NetBSD: Makefile,v 1.15 2006/08/29 14:32:45 hubertf Exp $
# $NetBSD: Makefile,v 1.16 2008/10/25 22:27:36 apb Exp $
NOOBJ= # defined
@ -58,7 +58,7 @@ man.pdf:
for i in ${SECTIONS} ; \
do \
echo Chewing on man$${i}pages.pdf ; \
sed \
${TOOL_SED} \
${OPTIMIZE_PDF} \
<man$${i}pages.ps >man$${i}pages.ps.tmp ; \
ps2pdf man$${i}pages.ps.tmp man$${i}pages.pdf ; \

View File

@ -1,5 +1,5 @@
# @(#)Makefile 8.2 (Berkeley) 3/27/94
# $NetBSD: Makefile,v 1.25 2004/03/20 20:41:33 dsl Exp $
# $NetBSD: Makefile,v 1.26 2008/10/25 22:27:36 apb Exp $
MELIB= ${BINDIR}/me
#TMLIB= ${BINDIR}/tmac
@ -24,7 +24,7 @@ ${DESTDIR}${MELIB}/${M}: .MADE
${DESTDIR}${MELIB}/${M}: ${M}
@rm -f ${.TARGET} ${M}.tmp
sed -f ${.CURDIR}/strip.sed < ${.ALLSRC} > ${M}.tmp
${TOOL_SED} -f ${.CURDIR}/strip.sed < ${.ALLSRC} > ${M}.tmp
${INSTALL_FILE:N-c} -o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE} \
${M}.tmp ${.TARGET}
@rm -f ${M}.tmp
@ -42,7 +42,7 @@ ${DESTDIR}${MELIB}/${M}: ${M}
#${DESTDIR}${TMLIB}/${M}: ${M}
# @rm -f ${.TARGET} ${M}.tmp
# sed -f ${.CURDIR}/strip.sed < ${.ALLSRC} > ${M}.tmp
# ${TOOL_SED} -f ${.CURDIR}/strip.sed < ${.ALLSRC} > ${M}.tmp
# ${INSTALL_FILE:N-c} -o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE} \
# ${M}.tmp ${.TARGET}
#.endfor

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.32 2008/10/19 22:05:20 apb Exp $
# $NetBSD: Makefile,v 1.33 2008/10/25 22:27:36 apb Exp $
# @(#)Makefile 8.1 (Berkeley) 6/8/93
NOOBJ= # defined
@ -21,7 +21,7 @@ update-domains:
echo '# Last update:' `date` ; \
echo '#' ; \
ftp -o - ${DOMAIN_URL} \
| sed -n -f ${.CURDIR}/domains.sed \
| ${TOOL_SED} -n -f ${.CURDIR}/domains.sed \
) > domains ; \
update-na.phone:

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.dep.mk,v 1.67 2004/04/18 04:34:27 lukem Exp $
# $NetBSD: bsd.dep.mk,v 1.68 2008/10/25 22:27:36 apb Exp $
##### Basic targets
cleandir: cleandepend
@ -75,6 +75,6 @@ cleandepend: .PHONY
tags: ${SRCS}
.if defined(SRCS)
-cd ${.CURDIR}; ctags -f /dev/stdout ${.ALLSRC:N*.h} | \
sed "s;\${.CURDIR}/;;" > tags
${TOOL_SED} "s;\${.CURDIR}/;;" > tags
.endif
.endif

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.x11.mk,v 1.69 2008/10/19 22:05:21 apb Exp $
# $NetBSD: bsd.x11.mk,v 1.70 2008/10/25 22:27:36 apb Exp $
.include <bsd.init.mk>
@ -161,7 +161,7 @@ PRINTX11VERSION=${TOOL_AWK} ' \
# Commandline to convert 'XCOMM' comments and 'XHASH' to '#', among other
# things. Transformed from the "CppSedMagic" macro from "Imake.rules".
#
X11TOOL_UNXCOMM= sed -e '/^\# *[0-9][0-9]* *.*$$/d' \
X11TOOL_UNXCOMM= ${TOOL_SED} -e '/^\# *[0-9][0-9]* *.*$$/d' \
-e '/^\#line *[0-9][0-9]* *.*$$/d' \
-e '/^[ ]*XCOMM$$/s/XCOMM/\#/' \
-e '/^[ ]*XCOMM[^a-zA-Z0-9_]/s/XCOMM/\#/' \

View File

@ -1,5 +1,5 @@
# @(#)Makefile 8.1 (Berkeley) 6/8/93
# $NetBSD: Makefile,v 1.30 2004/03/29 17:08:25 wiz Exp $
# $NetBSD: Makefile,v 1.31 2008/10/25 22:27:36 apb Exp $
# IF YOU ADD TO MSRCS, MAKE SURE YOU UPDATE `CATDEPS' IN bsd.man.mk!
MSRCS= doc2html
@ -19,7 +19,7 @@ realall: ${MMACS}
.for i in ${MSRCS}
$i.tmac: $i
${_MKTARGET_CREATE}
sed -f ${STRIP_SED} < ${.ALLSRC} > ${.TARGET}
${TOOL_SED} -f ${STRIP_SED} < ${.ALLSRC} > ${.TARGET}
.endfor
.include <bsd.prog.mk>

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2003/01/06 17:40:19 lukem Exp $
# $NetBSD: Makefile,v 1.3 2008/10/25 22:27:36 apb Exp $
# Makefile for acorn26 tags file and boot blocks
@ -16,7 +16,8 @@ DACORN26= acorn26 include iobus ioc mainbus vidc
tags: TAGS
-ctags -wdtf ${TACORN26} ${SACORN26} ${COMM}
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AACORN26} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
${TOOL_SED} -e \
"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> ${TACORN26}
sort -o ${TACORN26} ${TACORN26}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.4 2005/12/11 12:16:05 christos Exp $
# $NetBSD: Makefile,v 1.5 2008/10/25 22:27:36 apb Exp $
# Makefile for acorn32 tags file and boot blocks
@ -15,7 +15,8 @@ DACORN32= dev mainbus podulebus include
tags:
-ctags -wdtf ${TACORN32} ${SACORN32} ${COMM}
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AACORN32} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
${TOOL_SED} -e \
"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> ${TACORN32}
sort -o ${TACORN32} ${TACORN32}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2003/01/06 17:40:21 lukem Exp $
# $NetBSD: Makefile,v 1.3 2008/10/25 22:27:36 apb Exp $
# Makefile for algor tags file and boot blocks
@ -18,7 +18,7 @@ DALGOR= algor include isa pci
tags:
-ctags -wdtf ${TALGOR} ${SALGOR} ${SMIPS} ${COMM}
egrep "^LEAF(.*)|^[AN]LEAF(.*)|^NON_LEAF(.*)" ${AALGOR} ${AMIPS} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
${TOOL_SED} "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> ${TARC}
sort -o ${TALGOR} ${TALGOR}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.12 2003/01/06 17:40:21 lukem Exp $
# $NetBSD: Makefile,v 1.13 2008/10/25 22:27:36 apb Exp $
# Makefile for alpha tags file and boot blocks
@ -15,7 +15,7 @@ DALPHA= tc include
tags:
-ctags -wdtf ${TALPHA} ${SALPHA} ${COMM}
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AALPHA} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
${TOOL_SED} "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> ${TALPHA}
sort -o ${TALPHA} ${TALPHA}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.alpha,v 1.79 2007/10/17 19:52:57 garbled Exp $
# $NetBSD: Makefile.alpha,v 1.80 2008/10/25 22:27:36 apb Exp $
# Makefile for NetBSD
#
@ -35,7 +35,7 @@ CPPFLAGS+= -Dalpha
CFLAGS+= -mno-fp-regs
AFLAGS+= -traditional
NORMAL_S= ${CPP} ${AFLAGS} ${CPPFLAGS} $< | sed -e 's,^\#.*,,' | \
NORMAL_S= ${CPP} ${AFLAGS} ${CPPFLAGS} $< | ${TOOL_SED} -e 's,^\#.*,,' | \
${AS} -o ${.TARGET}
##

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.bootxx,v 1.7 2005/12/11 12:16:20 christos Exp $
# $NetBSD: Makefile.bootxx,v 1.8 2008/10/25 22:27:36 apb Exp $
SRCS = start.S bootxx.c booted_dev.c blkdev.c prom.c prom_disp.S \
putstr.c panic_putstr.c
@ -39,7 +39,7 @@ SAMISCMAKEFLAGS= SA_INCLUDE_NET=no SA_USE_CREAD=no
${PROG}.sym: ${OBJS} ${LIBSA} ${LIBKERN}
@${LD} -Ttext 0x20000000 -N --verbose 2>&1 \
| sed -n '/^==========/,/^===========/{/^========/d; \
| ${TOOL_SED} -n '/^==========/,/^===========/{/^========/d; \
s,^[[:blank:]]*\.eh_frame[[:blank:]]*:, /DISCARD/ : ,;p;}' \
> ${PROG}.lds
${LD} -T ${PROG}.lds -Ttext ${BOOT_RELOC} -N -e start \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 2008/02/17 16:23:12 bouyer Exp $
# $NetBSD: Makefile,v 1.4 2008/10/25 22:27:36 apb Exp $
# Makefile for amd64 tags file and boot blocks
@ -18,7 +18,8 @@ tags:
rm -f ${TAMD64}
-echo ${SAMD64} ${COMM} | xargs ctags -wadtf ${TAMD64}
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AAMD64} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
${TOOL_SED} -e \
"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> ${TAMD64}
sort -o ${TAMD64} ${TAMD64}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.20 2006/03/05 21:57:59 aymeric Exp $
# $NetBSD: Makefile,v 1.21 2008/10/25 22:27:36 apb Exp $
# Makefile for amiga tags file and boot blocks
@ -18,7 +18,8 @@ DAMIGA= amiga dev include
tags:
-echo ${COMM} | xargs ctags -wdtf ${TAMIGA} ${SAMIGA} ${SM68K}
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AAMIGA} ${AM68K} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
${TOOL_SED} -e \
"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> ${TAMIGA}
sort -o ${TAMIGA} ${TAMIGA}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.13 2007/10/17 19:53:14 garbled Exp $
# $NetBSD: Makefile,v 1.14 2008/10/25 22:27:36 apb Exp $
#
# Use this file to regenerate DRACO, GENERIC, INSTALL
@ -22,5 +22,5 @@ __generate_config: .USE GENERIC.in Makefile
@echo '# Changes will be lost when make is run in this directory.' >> ${.TARGET}
@echo '#' >> ${.TARGET}
@echo -n '# Created from: ' >> ${.TARGET}
sed -e '1s/$$NetBSD/NetBSD/' GENERIC.in |\
${TOOL_SED} -e '1s/$$NetBSD/NetBSD/' GENERIC.in |\
m4 -P -DM4_Target=${.TARGET} >> ${.TARGET}

View File

@ -1,12 +1,15 @@
# $NetBSD: Makefile,v 1.6 2005/12/11 12:16:27 christos Exp $
# $NetBSD: Makefile,v 1.7 2008/10/25 22:27:36 apb Exp $
.include <bsd.own.mk>
# ite support for A2410, generate C source from TMS34010 assembler
grf_ultms.c: grf_ultms.g
echo '/* $$' 'NetBSD$$ */' | sed -e 's/ N/N/' > ${.TARGET}
echo '/* $$' 'NetBSD$$ */' | ${TOOL_SED} -e 's/ N/N/' > ${.TARGET}
echo >> ${.TARGET}
echo '/* Generated from' >> ${.TARGET}
grep '$$NetBSD' ${.ALLSRC} | sed -e 's/[^$$]*\$$//' -e 's/\$$.*//' \
-e 's/^/ /' >> ${.TARGET}
grep '$$NetBSD' ${.ALLSRC} \
| ${TOOL_SED} -e 's/[^$$]*\$$//' -e 's/\$$.*//' -e 's/^/ /' \
>> ${.TARGET}
echo '*/' >> ${.TARGET}
echo >> ${.TARGET}
gspa -c tmscode ${.ALLSRC} >> ${.TARGET}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.10 2005/12/11 12:16:37 christos Exp $
# $NetBSD: Makefile,v 1.11 2008/10/25 22:27:36 apb Exp $
# $OpenBSD: Makefile,v 1.5 1997/05/19 10:34:53 pefo Exp $
# from: @(#)Makefile 8.1 (Berkeley) 6/16/93
@ -21,7 +21,7 @@ DARC= arc dev dti include isa pci jazz
tags:
-ctags -wdtf ${TARC} ${SARC} ${SMIPS} ${COMM}
egrep "^LEAF(.*)|^[AN]LEAF(.*)|^NON_LEAF(.*)" ${AARC} ${AMIPS} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
${TOOL_SED} "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> ${TARC}
sort -o ${TARC} ${TARC}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.6 2003/01/06 17:40:23 lukem Exp $
# $NetBSD: Makefile,v 1.7 2008/10/25 22:27:37 apb Exp $
# Makefile for atari tags file and boot blocks
@ -18,7 +18,7 @@ DATARI= atari dev include
tags:
-ctags -wdtf ${TATARI} ${SATARI} ${SM68K} ${COMM}
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AATARI} ${AM68K} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
${TOOL_SED} "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> ${TATARI}
sort -o ${TATARI} ${TATARI}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.2 2001/10/11 07:07:41 leo Exp $
# $NetBSD: Makefile.inc,v 1.3 2008/10/25 22:27:37 apb Exp $
#
# Configurable stuff.
@ -61,4 +61,5 @@ ${OBJS}: ${HEADERS}
${CC} ${CFLAGS} ${CPPFLAGS} -o $@ -c $<
.s.o:
${CPP} ${CPPFLAGS} $< | sed -e 's/%//g' | ${AS} ${ASFLAGS} -o $@
${CPP} ${CPPFLAGS} $< | ${TOOL_SED} -e 's/%//g' \
| ${AS} ${ASFLAGS} -o $@

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2003/01/06 17:40:25 lukem Exp $
# $NetBSD: Makefile,v 1.3 2008/10/25 22:27:37 apb Exp $
# Makefile for cats tags file and boot blocks
@ -15,7 +15,8 @@ DCATS= isa include
tags:
-ctags -wdtf ${TCATS} ${SCATS} ${COMM}
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ACATS} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
${TOOL_SED} -e \
"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> ${TCATS}
sort -o ${TCATS} ${TCATS}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.4 2003/01/06 17:40:26 lukem Exp $
# $NetBSD: Makefile,v 1.5 2008/10/25 22:27:37 apb Exp $
# Makefile for cobalt tags file
@ -18,7 +18,8 @@ DCOBALT= pci include
tags:
-ctags -wdtf ${TCOBALT} ${SCOBALT} ${SMIPS} ${COMM}
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ACOBALT} ${AMIPS} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
${TOOL_SED} -e \
"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> ${TCOBALT}
sort -o ${TCOBALT} ${TCOBALT}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2003/01/06 17:40:27 lukem Exp $
# $NetBSD: Makefile,v 1.3 2008/10/25 22:27:37 apb Exp $
# Makefile for dreamcast tags file and boot blocks
@ -16,7 +16,8 @@ DDREAMCAST= dreamcast include
tags:
-ctags -wdtf ${TDREAMCAST} ${SDREAMCAST} ${COMM}
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ADREAMCAST} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
${TOOL_SED} -e \
"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> ${TDREAMCAST}
sort -o ${TDREAMCAST} ${TDREAMCAST}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.5 2008/01/10 07:34:02 dyoung Exp $
# $NetBSD: Makefile,v 1.6 2008/10/25 22:27:37 apb Exp $
# Makefile for evbarm tags file and boot blocks
@ -23,7 +23,8 @@ tags:
-echo ${SEVBARM} | xargs ctags -wadtf ${TEVBARM}
-${FINDCOMM} | xargs ctags -wadtf ${TEVBARM}
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AEVBARM} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
${TOOL_SED} -e \
"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> ${TEVBARM}
sort -o ${TEVBARM} ${TEVBARM}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.evbarm.inc,v 1.18 2008/04/27 18:58:46 matt Exp $
# $NetBSD: Makefile.evbarm.inc,v 1.19 2008/10/25 22:27:37 apb Exp $
.if defined(BOARDMKFRAG) # Must be a full pathname.
.include "${BOARDMKFRAG}"
@ -14,7 +14,7 @@ EXTRA_CLEAN+= ldscript tmp
# generate ldscript from common template
ldscript: ${THISARM}/conf/ldscript.evbarm ${THISARM}/conf/Makefile.evbarm.inc Makefile ${BOARDMKFRAG}
echo ${KERNELS}
sed -e 's/@KERNEL_BASE_PHYS@/${KERNEL_BASE_PHYS}/' \
${TOOL_SED} -e 's/@KERNEL_BASE_PHYS@/${KERNEL_BASE_PHYS}/' \
-e 's/@KERNEL_BASE_VIRT@/${KERNEL_BASE_VIRT}/' \
${THISARM}/conf/ldscript.evbarm > tmp && mv tmp $@

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.6 2007/10/17 19:54:14 garbled Exp $
# $NetBSD: Makefile,v 1.7 2008/10/25 22:27:37 apb Exp $
# Makefile for evbmips tags file and boot blocks
@ -22,7 +22,8 @@ tags:
-echo ${SEVBMIPS} ${SMIPS} | xargs ctags -wadtf ${TEVBMIPS}
-${FINDCOMM} | xargs ctags -wadtf ${TEVBMIPS}
egrep "^LEAF(.*)|^[AN]LEAF(.*)|^NON_LEAF(.*)" ${AEVBMIPS} ${AMIPS} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
${TOOL_SED} -e \
"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> ${TEVBMIPS}
sort -o ${TEVBMIPS} ${TEVBMIPS}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2003/01/06 17:40:29 lukem Exp $
# $NetBSD: Makefile,v 1.3 2008/10/25 22:27:37 apb Exp $
# Makefile for evbsh3 tags file and boot blocks
@ -16,7 +16,8 @@ DEVBSH3= evbsh3 include
tags:
-ctags -wdtf ${TEVBSH3} ${SEVBSH3} ${COMM}
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AEVBSH3} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
${TOOL_SED} -e \
"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> ${TEVBSH3}
sort -o ${TEVBSH3} ${TEVBSH3}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.11 2003/01/06 17:40:31 lukem Exp $
# $NetBSD: Makefile,v 1.12 2008/10/25 22:27:37 apb Exp $
# Makefile for hp300 tags file and boot blocks
@ -18,7 +18,8 @@ DHP300= dev hp300 include
tags:
-ctags -wdtf ${THP300} ${SHP300} ${SM68K} ${COMM}
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AHP300} ${AM68K} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
${TOOL_SED} -e \
"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> ${THP300}
sort -o ${THP300} ${THP300}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.11 2008/08/29 00:02:23 gmcgarry Exp $
# $NetBSD: Makefile,v 1.12 2008/10/25 22:27:37 apb Exp $
PROG= xxboot
NOMAN= # defined
@ -61,7 +61,7 @@ CLEANFILES+= ${SRCS:M*.c:S/.c$/.o.S/}
# Place code to data section.
.S.o:
${_MKTARGET_COMPILE}
sed -e 's/\.code/.data/' \
${TOOL_SED} -e 's/\.code/.data/' \
-e 's/\.bss/.section .bss,"aw",@nobits/' \
-e 's/\.allow$$/.level 1.0/' -e 's/\.allow/.level/' \
${.IMPSRC} | ${AS} -o ${.TARGET}
@ -75,4 +75,4 @@ CLEANFILES+= ${SRCS:M*.c:S/.c$/.o.S/}
if [ $$? = 0 ]; then \
echo 'found non-relocatable code' >&2 && exit 1; \
fi
sed -e 's/\.text/.data/' $@.S | ${AS} -o ${.TARGET}
${TOOL_SED} -e 's/\.text/.data/' $@.S | ${AS} -o ${.TARGET}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2003/01/06 17:40:33 lukem Exp $
# $NetBSD: Makefile,v 1.3 2008/10/25 22:27:37 apb Exp $
# Makefile for hpcarm tags file and boot blocks
@ -16,7 +16,8 @@ DHPCARM= dev mainbus include sa
tags:
-ctags -wdtf ${THPCARM} ${SHPCARM} ${COMM}
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AHPCARM} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
${TOOL_SED} -e \
"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> ${THPCARM}
sort -o ${THPCARM} ${THPCARM}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2003/01/06 17:40:34 lukem Exp $
# $NetBSD: Makefile,v 1.3 2008/10/25 22:27:37 apb Exp $
# Makefile for hpcsh tags file and boot blocks
@ -16,7 +16,8 @@ DEVBSH3= hpcsh include
tags:
-ctags -wdtf ${TEVBSH3} ${SEVBSH3} ${COMM}
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AEVBSH3} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
${TOOL_SED} -e \
"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> ${TEVBSH3}
sort -o ${TEVBSH3} ${TEVBSH3}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.34 2008/06/11 08:14:14 dyoung Exp $
# $NetBSD: Makefile,v 1.35 2008/10/25 22:27:37 apb Exp $
# Makefile for i386 tags file and boot blocks
@ -31,7 +31,8 @@ tags:
-echo ${SI386} | xargs ctags -wadtf ${TI386}
-${FINDCOMM} | xargs ctags -wadtf ${TI386}
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AI386} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
${TOOL_SED} -e \
"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> ${TI386}
sort -o ${TI386} ${TI386}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.10 2006/10/09 11:25:03 dsl Exp $
# $NetBSD: Makefile,v 1.11 2008/10/25 22:27:37 apb Exp $
S= ${.CURDIR}/../../../../..
@ -46,7 +46,7 @@ ${PROG}: ${OBJS}
${CC} -o ${PROG}.tmp ${LDFLAGS} -Wl,-Ttext,${PRIMARY_LOAD_ADDRESS} \
${OBJS}
@ set -- $$( ${NM} -t d ${PROG}.tmp | grep '\<free_space\>' \
| sed 's/^0*//' ); \
| ${TOOL_SED} 's/^0*//' ); \
echo "#### There are $$1 free bytes in ${PROG}"
${OBJCOPY} -O binary ${PROG}.tmp ${PROG}
rm -f ${PROG}.tmp

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.7 2008/10/20 03:02:07 christos Exp $
# $NetBSD: Makefile,v 1.8 2008/10/25 22:27:37 apb Exp $
S= ${.CURDIR}/../../../..
@ -61,7 +61,8 @@ CLEANFILES+= ${PROG}.tmp
${PROG}: ${OBJS}
${_MKTARGET_LINK}
${CC} -o ${PROG}.tmp ${LDFLAGS} -Wl,-Ttext,${PRIMARY_LOAD_ADDRESS} ${OBJS}
@ set -- $$( ${NM} -t d ${PROG}.tmp | grep '\<free_space\>' | sed 's/^0*//' ); \
@ set -- $$( ${NM} -t d ${PROG}.tmp | grep '\<free_space\>' \
| ${TOOL_SED} 's/^0*//' ); \
echo "#### There are $$1 free bytes in ${PROG}"
${OBJCOPY} -O binary ${PROG}.tmp ${PROG}
rm -f ${PROG}.tmp

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.fat,v 1.2 2008/10/20 03:02:07 christos Exp $
# $NetBSD: Makefile.fat,v 1.3 2008/10/25 22:27:37 apb Exp $
S= ${.CURDIR}/../../../../../
@ -45,7 +45,7 @@ ${PROG}: ${OBJS}
${_MKTARGET_LINK}
${CC} -o ${PROG}.tmp ${LDFLAGS} -Wl,-Ttext,0x7c00 ${OBJS}
@ set -- $$( ${NM} -t d ${PROG}.tmp | grep '\<pbr_space\>' \
| sed 's/^0*//' ); \
| ${TOOL_SED} 's/^0*//' ); \
echo "#### There are $$1 free bytes in ${PROG}"
${OBJCOPY} -O binary ${PROG}.tmp ${PROG}
rm -f ${PROG}.tmp

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.mbr,v 1.13 2008/10/20 03:02:07 christos Exp $
# $NetBSD: Makefile.mbr,v 1.14 2008/10/25 22:27:37 apb Exp $
S= ${.CURDIR}/../../../../../
@ -43,7 +43,7 @@ ${PROG}: ${OBJS}
${_MKTARGET_LINK}
${CC} -o ${PROG}.tmp ${LDFLAGS} -Wl,-Ttext,0x600 ${OBJS}
@ set -- $$( ${NM} -t d ${PROG}.tmp | grep '\<mbr_space\>' \
| sed 's/^0*//' ); \
| ${TOOL_SED} 's/^0*//' ); \
echo "#### There are $$1 free bytes in ${PROG}"
${OBJCOPY} -O binary ${PROG}.tmp ${PROG}
rm -f ${PROG}.tmp

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2005/12/11 12:17:51 christos Exp $
# $NetBSD: Makefile,v 1.3 2008/10/25 22:27:37 apb Exp $
# Makefile for iyonix tags file and boot blocks
@ -15,7 +15,8 @@ DIYONIX= include
tags:
-ctags -wdtf ${TIYONIX} ${SIYONIX} ${COMM}
# egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AIYONIX} | \
# sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
# ${TOOL_SED} -e \
# "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
# >> ${TIYONIX}
sort -o ${TIYONIX} ${TIYONIX}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2006/09/01 21:26:18 uwe Exp $
# $NetBSD: Makefile,v 1.2 2008/10/25 22:27:37 apb Exp $
# Makefile for landisk tags file and boot blocks
@ -14,7 +14,8 @@ DLANDISK= landisk include
tags:
-ctags -wdtf ${TLANDISK} ${SLANDISK} ${COMM}
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ALANDISK} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
${TOOL_SED} -e \
"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> ${TLANDISK}
sort -o ${TLANDISK} ${TLANDISK}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2003/01/06 17:40:35 lukem Exp $
# $NetBSD: Makefile,v 1.3 2008/10/25 22:27:37 apb Exp $
# Makefile for luna68k tags file
@ -18,7 +18,8 @@ DLUNA68K= dev include
tags:
-ctags -wdtf ${TLUNA68K} ${SLUNA68K} ${COMM}
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ALUNA68K} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
${TOOL_SED} -e \
"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> ${TLUNA68K}
sort -o ${TLUNA68K} ${TLUNA68K}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.16 2008/10/19 22:05:21 apb Exp $
# $NetBSD: Makefile,v 1.17 2008/10/25 22:27:37 apb Exp $
# MOTOROLA MICROPROCESSOR & MEMORY TECHNOLOGY GROUP
# M68000 Hi-Performance Microprocessor Division
@ -55,7 +55,7 @@ AFLAGS = -x assembler-with-cpp -m68040
# For the Library Version:
#
AR? = ar
LIB_FILTER = sed 's/fpsp.defs/l_fpsp.defs/'
LIB_FILTER = ${TOOL_SED} 's/fpsp.defs/l_fpsp.defs/'
LIB_TARGET = lib$(TARGET).a
#
# SYS selects the template set to use

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.9 2007/02/25 05:47:55 dyoung Exp $
# $NetBSD: Makefile,v 1.10 2008/10/25 22:27:37 apb Exp $
# Makefile for mac68k tags file and boot blocks
@ -20,7 +20,8 @@ tags:
-rm -f ${TMAC68K}
-echo ${SMAC68K} ${SM68K} ${COMM} | xargs ctags -wdtf ${TMAC68K}
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AMAC68K} ${AM68K} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
${TOOL_SED} -e \
"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> ${TMAC68K}
sort -o ${TMAC68K} ${TMAC68K}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.7 2007/12/31 10:45:22 dyoung Exp $
# $NetBSD: Makefile,v 1.8 2008/10/25 22:27:37 apb Exp $
# Makefile for macppc tags file
@ -25,7 +25,8 @@ tags:
-echo ${SIMACPPC} | xargs ctags -wadtf ${TIMACPPC}
-${FINDCOMM} | xargs ctags -wadtf ${TIMACPPC}
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AIMACPPC} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
${TOOL_SED} -e \
"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> ${TIMACPPC}
sort -o ${TIMACPPC} ${TIMACPPC}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.4 2003/01/06 17:40:38 lukem Exp $
# $NetBSD: Makefile,v 1.5 2008/10/25 22:27:38 apb Exp $
# Makefile for mipsco tags file
@ -18,7 +18,8 @@ DMIPSCO= obio include
tags:
-ctags -wdtf ${TMIPSCO} ${SMIPSCO} ${SMIPS} ${COMM}
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AMIPSCO} ${AMIPS} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
${TOOL_SED} -e \
"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> ${TMIPSCO}
sort -o ${TMIPSCO} ${TMIPSCO}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2003/01/06 17:40:39 lukem Exp $
# $NetBSD: Makefile,v 1.3 2008/10/25 22:27:38 apb Exp $
# Makefile for mmeye tags file and boot blocks
@ -16,7 +16,8 @@ DMMEYE= mmeye include
tags:
-ctags -wdtf ${TMMEYE} ${SMMEYE} ${COMM}
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${AMMEYE} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
${TOOL_SED} -e \
"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> ${TMMEYE}
sort -o ${TMMEYE} ${TMMEYE}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2003/01/06 17:40:40 lukem Exp $
# $NetBSD: Makefile,v 1.3 2008/10/25 22:27:38 apb Exp $
# Makefile for netwinder tags file and boot blocks
@ -15,7 +15,8 @@ DNETWINDER= isa pci include
tags:
-ctags -wdtf ${TNETWINDER} ${SNETWINDER} ${COMM}
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ANETWINDER} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
${TOOL_SED} -e \
"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> ${TNETWINDER}
sort -o ${TNETWINDER} ${TNETWINDER}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3 2003/01/06 17:40:41 lukem Exp $
# $NetBSD: Makefile,v 1.4 2008/10/25 22:27:38 apb Exp $
# Makefile for news68k tags file
@ -18,7 +18,8 @@ DNEWS68K= dev include
tags:
-ctags -wdtf ${TNEWS68K} ${SNEWS68K} ${COMM}
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ANEWS68K} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
${TOOL_SED} -e \
"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> ${TNEWS68K}
sort -o ${TNEWS68K} ${TNEWS68K}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.4 2003/01/06 17:40:42 lukem Exp $
# $NetBSD: Makefile,v 1.5 2008/10/25 22:27:38 apb Exp $
# Makefile for newsmips tags file
@ -18,7 +18,8 @@ DNEWSMIPS= dev include
tags:
-ctags -wdtf ${TNEWSMIPS} ${SNEWSMIPS} ${SMIPS} ${COMM}
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ANEWSMIPS} ${AMIPS} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
${TOOL_SED} -e \
"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> ${TNEWSMIPS}
sort -o ${TNEWSMIPS} ${TNEWSMIPS}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.6 2003/01/06 17:40:42 lukem Exp $
# $NetBSD: Makefile,v 1.7 2008/10/25 22:27:38 apb Exp $
# Makefile for next68k tags file and boot blocks
@ -19,7 +19,8 @@ DNEXT68K= dev next68k include
tags:
-ctags -wdtf ${TNEXT68K} ${SNEXT68K} ${SM68K} ${COMM}
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ANEXT68K} ${AM68K} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
${TOOL_SED} -e \
"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> ${TNEXT68K}
sort -o ${TNEXT68K} ${TNEXT68K}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.11 2003/01/06 17:40:45 lukem Exp $
# $NetBSD: Makefile,v 1.12 2008/10/25 22:27:38 apb Exp $
# Makefile for pmax tags file and boot blocks
@ -18,7 +18,8 @@ DPMAX= dev tc include
tags:
-ctags -wdtf ${TPMAX} ${SPMAX} ${SMIPS} ${COMM}
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${APMAX} ${AMIPS} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
${TOOL_SED} -e \
"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> ${TPMAX}
sort -o ${TPMAX} ${TPMAX}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2 2003/01/06 17:40:46 lukem Exp $
# $NetBSD: Makefile,v 1.3 2008/10/25 22:27:38 apb Exp $
# Makefile for tags file
@ -15,7 +15,8 @@ DPREP= include
tags:
-ctags -wdtf ${TPREP} ${SPREP} ${COMM}
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${APREP} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
${TOOL_SED} -e \
"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> ${TPREP}
sort -o ${TPREP} ${TPREP}

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 2007/12/17 19:09:01 garbled Exp $
# $NetBSD: Makefile,v 1.2 2008/10/25 22:27:38 apb Exp $
# Makefile for tags file
@ -15,7 +15,8 @@ DRS6000= include
tags:
-ctags -wdtf ${TRS6000} ${SRS6000} ${COMM}
egrep "^ENTRY(.*)|^ALTENTRY(.*)" ${ARS6000} | \
sed "s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
${TOOL_SED} -e \
"s;\([^:]*\):\([^(]*\)(\([^, )]*\)\(.*\);\3 \1 /^\2(\3\4$$/;" \
>> ${TRS6000}
sort -o ${TRS6000} ${TRS6000}

Some files were not shown because too many files have changed in this diff Show More