diff options
author | Alan Modra <amodra@bigpond.net.au> | 2000-06-22 13:01:43 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2000-06-22 13:01:43 +0000 |
commit | 5647d9dd4d56f70042fe95c8c2c4157b3ee71db4 (patch) | |
tree | 1ca2391be8c930601f4ebe2d0a950f2d0b8eada7 /gprof | |
parent | bf56b07989b5f41e58d9d5166a7ebd05826efeb1 (diff) | |
download | binutils-redhat-5647d9dd4d56f70042fe95c8c2c4157b3ee71db4.tar.gz |
Ensure /usr/include and the like stay out of dependencies.
Diffstat (limited to 'gprof')
-rw-r--r-- | gprof/ChangeLog | 6 | ||||
-rw-r--r-- | gprof/Makefile.am | 8 | ||||
-rw-r--r-- | gprof/Makefile.in | 10 |
3 files changed, 19 insertions, 5 deletions
diff --git a/gprof/ChangeLog b/gprof/ChangeLog index 400c83473c..06723ca8d8 100644 --- a/gprof/ChangeLog +++ b/gprof/ChangeLog @@ -1,3 +1,9 @@ +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. + 2000-06-20 Alan Modra <alan@linuxcare.com.au> * source.c (annotate_source): Correct pointer comparison when diff --git a/gprof/Makefile.am b/gprof/Makefile.am index da94204c3b..d380ce5893 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 diff --git a/gprof/Makefile.in b/gprof/Makefile.in index 3258251a06..af7ea2f2bd 100644 --- a/gprof/Makefile.in +++ b/gprof/Makefile.in @@ -178,7 +178,7 @@ aclocal.m4 configure configure.in gconfig.in DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) -TAR = gtar +TAR = tar GZIP_ENV = --best SOURCES = $(gprof_SOURCES) OBJECTS = $(gprof_OBJECTS) @@ -706,8 +706,12 @@ po/POTFILES.in: @MAINT@ Makefile 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 |