Patch for bogus DEP check in Makefile.am

H . J . Lu hjl@valinux.com
Fri Jun 30 12:21:00 GMT 2000


Most of DEP check in Makefile.am:

2000-06-22  Alan Modra  <alan@linuxcare.com.au>

        * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
        find one.
        * Makefile.in: Regenerate.

are bogus since dep.sed is used to strip those leading `/' in DEP1. As long
as DEP has leading `/', we are fine. Could I check my patch in? I will add
ChangeLog entries when I check them in.

Nick, I sent a patch last night for ld/Makefile.am. Can I check it in also?

Thanks.


-- 
H.J. Lu (hjl@gnu.org)
--
Index: bfd/Makefile.am
===================================================================
RCS file: /work/cvs/gnu/binutils/bfd/Makefile.am,v
retrieving revision 1.24
diff -u -p -r1.24 Makefile.am
--- bfd/Makefile.am	2000/06/23 19:11:21	1.24
+++ bfd/Makefile.am	2000/06/30 18:41:45
@@ -576,10 +576,10 @@ install-data-local: $(BFD_H)
 DEP: dep.sed $(CFILES) $(HFILES) bfd.h
 	rm -f DEP1
 	$(MAKE) MKDEP="$(MKDEP)" DEP1
-	if grep ' /' DEP1 > /dev/null 2> /dev/null; then \
+	sed -f dep.sed < DEP1 > $@
+	if grep ' /' $@ > /dev/null 2> /dev/null; then \
 	  echo 'make DEP failed!'; exit 1; \
 	else \
-	  sed -f dep.sed < DEP1 > $@; \
 	  echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> $@; \
 	fi
 
Index: binutils/Makefile.am
===================================================================
RCS file: /work/cvs/gnu/binutils/binutils/Makefile.am,v
retrieving revision 1.12
diff -u -p -r1.12 Makefile.am
--- binutils/Makefile.am	2000/06/23 19:11:24	1.12
+++ binutils/Makefile.am	2000/06/30 18:41:51
@@ -287,10 +287,10 @@ DISTCLEANFILES = stamp-under sysinfo und
 DEP: dep.sed $(CFILES) $(HFILES) $(GENERATED_CFILES) $(GENERATED_HFILES) config.h
 	rm -f DEP1
 	$(MAKE) MKDEP="$(MKDEP)" DEP1
-	if grep ' /' DEP1 > /dev/null 2> /dev/null; then \
-	  echo 'make DEP failed!'; exit 1; \
+	sed -f dep.sed < DEP1 > $@
+	if grep ' /' DEP > /dev/null 2> /dev/null; then \
+	  echo 'make $@ failed!'; exit 1; \
 	else \
-	  sed -f dep.sed < DEP1 > $@; \
 	  echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> $@; \
 	fi
 
Index: gprof/Makefile.am
===================================================================
RCS file: /work/cvs/gnu/binutils/gprof/Makefile.am,v
retrieving revision 1.8
diff -u -p -r1.8 Makefile.am
--- gprof/Makefile.am	2000/06/23 19:11:24	1.8
+++ gprof/Makefile.am	2000/06/30 18:42:02
@@ -57,10 +57,10 @@ man_MANS = gprof.1
 DEP: dep.sed $(gprof_SOURCES) $(noinst_HEADERS) gconfig.h
 	rm -f DEP1
 	$(MAKE) MKDEP="$(MKDEP)" DEP1
-	if grep ' /' DEP1 > /dev/null 2> /dev/null; then \
+	sed -f dep.sed < DEP1 > $@
+	if grep ' /' DEP > /dev/null 2> /dev/null; then \
 	  echo 'make DEP failed!'; exit 1; \
 	else \
-	  sed -f dep.sed < DEP1 > $@; \
 	  echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> $@; \
 	fi
 
Index: ld/Makefile.am
===================================================================
RCS file: /work/cvs/gnu/binutils/ld/Makefile.am,v
retrieving revision 1.27
diff -u -p -r1.27 Makefile.am
--- ld/Makefile.am	2000/06/23 19:11:25	1.27
+++ ld/Makefile.am	2000/06/30 18:42:10
@@ -892,10 +895,10 @@ distclean-local:
 DEP: dep.sed $(CFILES) $(HFILES) $(GENERATED_CFILES) $(GENERATED_HFILES) config.h
 	rm -f DEP1
 	$(MAKE) MKDEP="$(MKDEP)" DEP1
-	if grep ' /' DEP1 > /dev/null 2> /dev/null; then \
+	sed -f dep.sed < DEP1 > $@
+	if grep ' /' $@ > /dev/null 2> /dev/null; then \
 	  echo 'make DEP failed!'; exit 1; \
 	else \
-	  sed -f dep.sed < DEP1 > $@; \
 	  echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> $@; \
 	fi
 
Index: opcodes/Makefile.am
===================================================================
RCS file: /work/cvs/gnu/binutils/opcodes/Makefile.am,v
retrieving revision 1.17
diff -u -p -r1.17 Makefile.am
--- opcodes/Makefile.am	2000/06/23 19:11:25	1.17
+++ opcodes/Makefile.am	2000/06/30 18:42:22
@@ -250,10 +250,10 @@ ia64-asmtab.c: @MAINT@ ia64-gen ia64-ic.
 DEP: dep.sed $(CFILES) $(HFILES) config.h
 	rm -f DEP1
 	$(MAKE) MKDEP="$(MKDEP)" DEP1
-	if grep ' /' DEP1 > /dev/null 2> /dev/null; then \
+	sed -f dep.sed < DEP1 > $@
+	if grep ' /' $@ > /dev/null 2> /dev/null; then \
 	  echo 'make DEP failed!'; exit 1; \
 	else \
-	  sed -f dep.sed < DEP1 > $@; \
 	  echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> $@; \
 	fi
 


More information about the Binutils mailing list