aboutsummaryrefslogtreecommitdiff
path: root/bfd/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/Makefile.am')
-rw-r--r--bfd/Makefile.am8
1 files changed, 6 insertions, 2 deletions
diff --git a/bfd/Makefile.am b/bfd/Makefile.am
index 586c617..114a626 100644
--- a/bfd/Makefile.am
+++ b/bfd/Makefile.am
@@ -576,8 +576,12 @@ install-data-local: $(BFD_H)
DEP: dep.sed $(CFILES) $(HFILES) bfd.h
rm -f DEP1
$(MAKE) MKDEP="$(MKDEP)" DEP1
- sed -f dep.sed < DEP1 > $@
- echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> $@
+ if grep ' /' DEP1 > /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
DEP1: $(CFILES)
echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > DEP2