Support MAKEVERBOSE

Use ${HOST_SH}
Use BUILDSYMLINKS
This commit is contained in:
lukem 2003-10-20 01:15:03 +00:00
parent 46948f220d
commit 3fc127cd66
7 changed files with 46 additions and 17 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.12 2003/03/05 07:19:13 mrg Exp $
# $NetBSD: Makefile,v 1.13 2003/10/20 01:15:03 lukem Exp $
PROG= c++filt
CPPFLAGS+= -DMAIN
@ -11,4 +11,6 @@ CLEANFILES+= c++filt.1
.PATH: ${DIST}/libiberty
c++filt.1: ${DIST}/binutils/doc/cxxfilt.man
${_MKMSGCREATE}
${_MKCMD}\
sed -e "s/@PROGRAM@/${PROG}/" < $> > $@

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.13 2003/03/05 07:19:14 mrg Exp $
# $NetBSD: Makefile,v 1.14 2003/10/20 01:15:03 lukem Exp $
.include <bsd.own.mk>
@ -15,7 +15,10 @@ INFOFLAGS= -I${DIST}/binutils/doc -I{.CURDIR}
${TEXINFO}: config.texi
config.texi: ${.CURDIR}/arch/${MACHINE_ARCH}/defs.mk
${_MKMSGCREATE}
${_MKCMD}\
rm -f config.texi
${_MKCMD}\
echo "@set VERSION ${VERSION}" > config.texi
CLEANFILES+= config.texi

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.13 2003/08/01 17:03:44 lukem Exp $
# $NetBSD: Makefile,v 1.14 2003/10/20 01:15:03 lukem Exp $
.include <bsd.own.mk>
@ -37,9 +37,7 @@ INFOFLAGS= -I${DIST}/ld -I${DIST}/bfd/doc
.PATH: ${DIST}/ld ${DIST}/ld/emulparams \
${DIST}/ld/emultempl ${DIST}/ld/scripttempl ldscripts
CLEANFILES+= stringify.sed
stringify.sed: ${G_STRINGIFY}
cp $> $@
BUILDSYMLINKS+= ${G_STRINGIFY} stringify.sed
.for f in ${G_EMULATION_OFILES:S/^e//:R}
.if exists(.depend.${f})
@ -47,6 +45,8 @@ stringify.sed: ${G_STRINGIFY}
.endif
.depend.${f}: ${f}.sh
${_MKMSGCREATE}
${_MKCMD}\
(srcdir=${DIST}/ld . ${>:M*.sh} && \
if [ x"$$TEMPLATE_NAME" != x ]; then \
temp_emul=$$TEMPLATE_NAME.em; \
@ -65,9 +65,11 @@ DPSRCS+= .depend.${f} e${f}.c
CLEANFILES+= .depend.${f} e${f}.c
e${f}.c: ${DIST}/ld/genscripts.sh ${.CURDIR}/Makefile stringify.sed
${_MKMSGCREATE}
${_MKCMD}\
unset MACHINE || true; \
LIB_PATH=/usr/lib srcdir=${DIST}/ld \
sh ${DIST}/ld/genscripts.sh ${DIST}/ld ${LIBDIR} /usr \
${HOST_SH} ${DIST}/ld/genscripts.sh ${DIST}/ld ${LIBDIR} /usr \
${G_target_alias} ${G_target_alias} ${G_target_alias} \
${G_EMUL} ${LIBDIR} ${f}
@ -89,4 +91,5 @@ e${f}.c: ${DIST}/ld/genscripts.sh ${.CURDIR}/Makefile stringify.sed
cleanprog: __cleanldscripts
__cleanldscripts:
-rm -rf ldscripts
${_MKCMD}\
rm -rf ldscripts

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.5 2003/01/16 02:37:00 wiz Exp $
# $NetBSD: Makefile,v 1.6 2003/10/20 01:15:03 lukem Exp $
.include "${.CURDIR}/../Makefile.inc"
@ -10,13 +10,18 @@ MAN= cvsbug.8
CLEANFILES+=.fname cvsbug
cvsbug: cvsbug.in
${_MKMSGCREATE}
${_MKCMD}\
sed -e 's,@PACKAGE_BUGREPORT@,bug-cvs@gnu.org,g' \
-e "s,@VERSION@,`cat .fname`,g" ${.ALLSRC} > ${.TARGET}
${_MKCMD}\
chmod a+x ${.TARGET}
cvsbug: .fname
.fname: configure
${_MKMSGCREATE}
${_MKCMD}\
echo > .fname \
cvs-`sed < ${.ALLSRC} \
-e '/PACKAGE_VERSION/!d' \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.17 2003/10/06 16:50:39 wiz Exp $
# $NetBSD: Makefile,v 1.18 2003/10/20 01:15:03 lukem Exp $
.include <bsd.own.mk>
@ -27,13 +27,14 @@ CLEANFILES+= ${PROG}.1 ${PROG}.texi
COPTS+= -O1
.endif
${PROG}.1: gawk.1
@-rm -f $@
cp $> $@
BUILDSYMLINKS+= gawk.1 ${PROG}.1
${PROG}.texi: gawk.texi
@-rm -f $@
sed -e 's/gawk.info/awk.info/g' <$> >$@
${_MKMSGCREATE}
${_MKCMD}\
rm -f $@
${_MKCMD}\
sed -e 's/gawk.info/awk.info/g' <$> >$@
.include <bsd.info.mk>
.include <bsd.prog.mk>

View File

@ -1,10 +1,11 @@
# $NetBSD: Makefile,v 1.2 2003/10/06 21:40:32 veego Exp $
# $NetBSD: Makefile,v 1.3 2003/10/20 01:15:03 lukem Exp $
libiberty:
mkdir libiberty
(cd libiberty; env CC=${HOST_CC:Q} ${DIST}/libiberty/configure && env CC=${HOST_CC:Q} ${MAKE})
cleandir:
${_MKCMD}\
rm -rf libiberty
depend dependall all: libiberty

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.26 2001/10/23 14:29:07 fredb Exp $
# $NetBSD: Makefile,v 1.27 2003/10/20 01:15:03 lukem Exp $
.include <bsd.own.mk>
@ -55,6 +55,8 @@ CLEANFILES= send-pr send-pr.1 send-pr.el install-sid
realall: send-pr send-pr.1 send-pr.el install-sid
send-pr: send-pr.sh Makefile
${_MKMSGCREATE}
${_MKCMD}\
sed -e 's,xVERSIONx,$(VERSION),' \
-e 's,xGNATS_ROOTx,$(GNATS_ROOT),' \
-e 's,xGNATS_ADDRx,$(GNATS_ADDR),' \
@ -66,16 +68,24 @@ send-pr: send-pr.sh Makefile
-e 's%xDEFAULT_ORGANIZATIONx%$(DEFAULT_ORGANIZATION)%' \
-e 's,xDEFAULT_RELEASEx,$(DEFAULT_RELEASE),' \
-e 's,xDATADIRx,$(datadir),' $(srcdir)/send-pr.sh > $@-t
${_MKCMD}\
mv -f $@-t $@
${_MKCMD}\
chmod 755 $@
install-sid: install-sid.sh Makefile
${_MKMSGCREATE}
${_MKCMD}\
sed -e 's,xBINDIRx,$(bindir),g' \
-e 's,xVERSIONx,$(VERSION),g' $(srcdir)/install-sid.sh > $@-t
${_MKCMD}\
mv -f $@-t $@
${_MKCMD}\
chmod 755 $@
send-pr.el: send-pr-el.in Makefile
${_MKMSGCREATE}
${_MKCMD}\
sed -e 's,xVERSIONx,$(VERSION),' \
-e 's,xGNATS_ROOTx,$(GNATS_ROOT),' \
-e 's,xGNATS_SITEx,$(GNATS_SITE),' \
@ -84,11 +94,15 @@ send-pr.el: send-pr-el.in Makefile
-e 's,xDEFAULT_RELEASEx,$(DEFAULT_RELEASE),' \
$(srcdir)/send-pr-el.in \
> $@-t
${_MKCMD}\
mv -f $@-t $@
send-pr.1: send-pr.man Makefile
${_MKMSGCREATE}
${_MKCMD}\
sed -e 's,xGNATS_ROOTx,$(GNATS_ROOT),g' \
-e 's,xVERSIONx,$(VERSION),g' $(srcdir)/send-pr.man > $@-t
${_MKCMD}\
mv -f $@-t $@
FILES=send-pr install-sid