Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/usr.bin/gcc/f771 CLEANFILES has to be set before includi...



details:   https://anonhg.NetBSD.org/src/rev/18410f8cfbed
branches:  trunk
changeset: 515927:18410f8cfbed
user:      tv <tv%NetBSD.org@localhost>
date:      Mon Oct 08 23:18:11 2001 +0000

description:
CLEANFILES has to be set before including <bsd.prog.mk> to make sure that
clean/cleandir does its job (this should be fixed).  Work around it, and
fix some parallelism problems.

diffstat:

 gnu/usr.bin/gcc/f771/Makefile |  14 ++++++--------
 1 files changed, 6 insertions(+), 8 deletions(-)

diffs (36 lines):

diff -r 06a32a440532 -r 18410f8cfbed gnu/usr.bin/gcc/f771/Makefile
--- a/gnu/usr.bin/gcc/f771/Makefile     Mon Oct 08 22:56:31 2001 +0000
+++ b/gnu/usr.bin/gcc/f771/Makefile     Mon Oct 08 23:18:11 2001 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.2 2001/07/18 13:59:17 tv Exp $
+#      $NetBSD: Makefile,v 1.3 2001/10/08 23:18:11 tv Exp $
 
 PROG=          f771
 SRCS=          ${G_F77_OBJS:.o=.c}
@@ -7,10 +7,11 @@
 HOST_CPPFLAGS+=        -I${GCCARCH} -DUSE_HCONFIG= \
                ${G_ALL_CFLAGS:M-D*} ${G_INCLUDES:M-I*:N-I.*}
 
-.include "../Makefile.backend"
+.for f in 1t 2t fo io nq op ot
+CLEANFILES+=   str-${f}.h str-${f}.j
+.endfor
 
-# See comment in ../backend/Makefile for the reason for
-# this ${MAKE} dance.
+.include "../Makefile.backend"
 
 fini: fini.c proj.c
        ${HOST_LINK.c} -o $@ $>
@@ -21,10 +22,7 @@
 .endif
 
 .for f in 1t 2t fo io nq op ot
-CLEANFILES+=   str-${f}.h str-${f}.j
-
-str-${f}.h str-${f}.j: str-${f}.fin fini.c proj.c
-       @cd ${.CURDIR} && ${MAKE} fini
+str-${f}.h str-${f}.j: str-${f}.fin fini
        ./fini ${>:M*.fin} str-${f}.j str-${f}.h
 
 ${OBJS} .depend: str-${f}.h



Home | Main Index | Thread Index | Old Index