DragonFly commits List (threaded) for 2007-08
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: cvs commit: src/gnu/usr.bin/cc41/cc_tools Makefile Makefile.gen Makefile.tools src/gnu/usr.bin/cc41/cc_tools/gcov-iov Makefile src/gnu/usr.bin/cc41/cc_tools/genattr Makefile src/gnu/usr.bin/cc41/cc_tools/genattrtab Makefile src/gnu/usr.bin/cc41/cc_tools/gencheck Makefile ...
:Matthew Dillon wrote:
:> This is running for make obj target, before the object directory exists,
:> which means that make can't find the object directory at that point in
:> the file (because it doesn't exist yet), which means that make's idea
:> of .OBJDIR is the source directory.
:
:Oh. I wonder why it worked here then. I'll see what I can do.
:
:cheers
: simon
I'm guessing your /usr/src is R+W. Mine is a read-only NFS mount.
The following patch fixes the problem, but it's a bit of a hack so
I'm assuming you'll be able to come up with something cleaner.
-Matt
Matthew Dillon
<dillon@backplane.com>
Index: cc_tools/Makefile
===================================================================
RCS file: /cvs/src/gnu/usr.bin/cc41/cc_tools/Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile
--- cc_tools/Makefile 25 Aug 2007 15:29:28 -0000 1.2
+++ cc_tools/Makefile 28 Aug 2007 05:51:51 -0000
@@ -10,12 +10,9 @@ #.if !defined(NO_FORTRAN)
#SUBDIR+= fini
#.endif
-.ORDER: mktooldir ${SUBDIR}
+.ORDER: ${SUBDIR}
.include "Makefile.tools"
-obj depend: mktooldir
-mktooldir:
- mkdir -p ${TOOLGENDIR}
clean cleandir:
rm -rf ${TOOLGENDIR}
Index: cc_tools/Makefile.gen
===================================================================
RCS file: /cvs/src/gnu/usr.bin/cc41/cc_tools/Makefile.gen,v
retrieving revision 1.1
diff -u -p -r1.1 Makefile.gen
--- cc_tools/Makefile.gen 25 Aug 2007 15:29:28 -0000 1.1
+++ cc_tools/Makefile.gen 28 Aug 2007 05:55:30 -0000
@@ -3,5 +3,6 @@
all: ${TOOLGENDIR}/${GENFILE}
${TOOLGENDIR}/${GENFILE}: ${PROG}.nx ${GENINPUT}
+ mkdir -p ${TOOLGENDIR}
${.OBJDIR}/${PROG}.nx ${GENINPUT} > ${.TARGET}.tmp
${MIC} ${.TARGET}.tmp ${.TARGET}
Index: cc_tools/gcov-iov/Makefile
===================================================================
RCS file: /cvs/src/gnu/usr.bin/cc41/cc_tools/gcov-iov/Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile
--- cc_tools/gcov-iov/Makefile 25 Aug 2007 15:29:28 -0000 1.2
+++ cc_tools/gcov-iov/Makefile 28 Aug 2007 05:55:24 -0000
@@ -5,7 +5,9 @@
PROG= gcov-iov
all: ${TOOLGENDIR}/gcov-iov.h
+
${TOOLGENDIR}/gcov-iov.h: BASE-VER DEV-PHASE ${PROG}.nx
+ mkdir -p ${TOOLGENDIR}
${.OBJDIR}/${PROG}.nx "`cat ${.ALLSRC:M*BASE-VER}`" \
"`cat ${.ALLSRC:M*DEV-PHASE}`" > ${.TARGET}.tmp
${MIC} ${.TARGET}.tmp ${.TARGET}
Index: cc_tools/gengenrtl/Makefile
===================================================================
RCS file: /cvs/src/gnu/usr.bin/cc41/cc_tools/gengenrtl/Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile
--- cc_tools/gengenrtl/Makefile 25 Aug 2007 15:29:29 -0000 1.2
+++ cc_tools/gengenrtl/Makefile 28 Aug 2007 05:58:26 -0000
@@ -9,10 +9,12 @@
all: ${TOOLGENDIR}/genrtl.c ${TOOLGENDIR}/genrtl.h
${TOOLGENDIR}/genrtl.c: ${PROG}.nx
+ mkdir -p ${TOOLGENDIR}
${.OBJDIR}/${PROG}.nx > ${.TARGET}.tmp
${MIC} ${.TARGET}.tmp ${.TARGET}
${TOOLGENDIR}/genrtl.h: ${PROG}.nx
+ mkdir -p ${TOOLGENDIR}
${.OBJDIR}/${PROG}.nx -h > ${.TARGET}.tmp
${MIC} ${.TARGET}.tmp ${.TARGET}
Index: cc_tools/genmodes/Makefile
===================================================================
RCS file: /cvs/src/gnu/usr.bin/cc41/cc_tools/genmodes/Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile
--- cc_tools/genmodes/Makefile 25 Aug 2007 15:29:29 -0000 1.2
+++ cc_tools/genmodes/Makefile 28 Aug 2007 05:58:50 -0000
@@ -9,14 +9,17 @@
all: ${TOOLGENDIR}/insn-modes.c ${TOOLGENDIR}/insn-modes.h ${TOOLGENDIR}/min-insn-modes.c
${TOOLGENDIR}/insn-modes.c: ${PROG}.nx
+ mkdir -p ${TOOLGENDIR}
${.OBJDIR}/${PROG}.nx > ${.TARGET}.tmp
${MIC} ${.TARGET}.tmp ${.TARGET}
${TOOLGENDIR}/insn-modes.h: ${PROG}.nx
+ mkdir -p ${TOOLGENDIR}
${.OBJDIR}/${PROG}.nx -h > ${.TARGET}.tmp
${MIC} ${.TARGET}.tmp ${.TARGET}
${TOOLGENDIR}/min-insn-modes.c: ${PROG}.nx
+ mkdir -p ${TOOLGENDIR}
${.OBJDIR}/${PROG}.nx -m > ${.TARGET}.tmp
${MIC} ${.TARGET}.tmp ${.TARGET}
Index: cc_tools/genpreds/Makefile
===================================================================
RCS file: /cvs/src/gnu/usr.bin/cc41/cc_tools/genpreds/Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile
--- cc_tools/genpreds/Makefile 25 Aug 2007 15:29:29 -0000 1.2
+++ cc_tools/genpreds/Makefile 28 Aug 2007 05:58:56 -0000
@@ -9,10 +9,12 @@
all: ${TOOLGENDIR}/insn-preds.c ${TOOLGENDIR}/tm-preds.h
${TOOLGENDIR}/insn-preds.c: ${PROG}.nx ${MD_FILE}
+ mkdir -p ${TOOLGENDIR}
${.OBJDIR}/${PROG}.nx ${MD_FILE} > ${.TARGET}.tmp
${MIC} ${.TARGET}.tmp ${.TARGET}
${TOOLGENDIR}/tm-preds.h: ${PROG}.nx ${MD_FILE}
+ mkdir -p ${TOOLGENDIR}
${.OBJDIR}/${PROG}.nx ${MD_FILE} -h > ${.TARGET}.tmp
${MIC} ${.TARGET}.tmp ${.TARGET}
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]