aboutsummaryrefslogtreecommitdiff
path: root/gprof/Makefile.am
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2000-06-22 13:01:43 +0000
committerAlan Modra <amodra@gmail.com>2000-06-22 13:01:43 +0000
commit1581f8c9feb992568c0f36d2c76d43f7a75a4750 (patch)
treefd86b2f947da0e879eae266d65bddf7d3470dae9 /gprof/Makefile.am
parent45288df104aeefbd6fb98ac40659b1aec6b6bb65 (diff)
downloadgdb-1581f8c9feb992568c0f36d2c76d43f7a75a4750.zip
gdb-1581f8c9feb992568c0f36d2c76d43f7a75a4750.tar.gz
gdb-1581f8c9feb992568c0f36d2c76d43f7a75a4750.tar.bz2
Ensure /usr/include and the like stay out of dependencies.
Diffstat (limited to 'gprof/Makefile.am')
-rw-r--r--gprof/Makefile.am8
1 files changed, 6 insertions, 2 deletions
diff --git a/gprof/Makefile.am b/gprof/Makefile.am
index da94204..d380ce5 100644
--- a/gprof/Makefile.am
+++ b/gprof/Makefile.am
@@ -57,8 +57,12 @@ man_MANS = gprof.1
DEP: dep.sed $(gprof_SOURCES) $(noinst_HEADERS) gconfig.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: $(gprof_SOURCES)
echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > DEP2