diff options
author | Alan Modra <amodra@gmail.com> | 2000-07-01 01:41:09 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2000-07-01 01:41:09 +0000 |
commit | 0bdaf48bac96b318feed22ef57035b06133fcf2f (patch) | |
tree | e8928b9d365d067eba6e374fd61c32266caf24eb /gprof | |
parent | 9b443040f82ecf46cfec9d18b9d1ed2d487c53d5 (diff) | |
download | gdb-0bdaf48bac96b318feed22ef57035b06133fcf2f.zip gdb-0bdaf48bac96b318feed22ef57035b06133fcf2f.tar.gz gdb-0bdaf48bac96b318feed22ef57035b06133fcf2f.tar.bz2 |
Fix 2000-06-22. grep after running dep.sed
Diffstat (limited to 'gprof')
-rw-r--r-- | gprof/ChangeLog | 6 | ||||
-rw-r--r-- | gprof/Makefile.am | 9 | ||||
-rw-r--r-- | gprof/Makefile.in | 9 |
3 files changed, 16 insertions, 8 deletions
diff --git a/gprof/ChangeLog b/gprof/ChangeLog index 06723ca..1b5e8fb 100644 --- a/gprof/ChangeLog +++ b/gprof/ChangeLog @@ -1,3 +1,9 @@ +2000-07-01 Alan Modra <alan@linuxcare.com.au> + + * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed + (CLEANFILES): Add DEPA. + * Makefile.in: Regenerate. + 2000-06-22 Alan Modra <alan@linuxcare.com.au> * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we diff --git a/gprof/Makefile.am b/gprof/Makefile.am index d380ce5..50d787b 100644 --- a/gprof/Makefile.am +++ b/gprof/Makefile.am @@ -57,11 +57,12 @@ 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 > DEPA + echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> DEPA + if grep ' /' DEPA > /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' >> $@; \ + mv -f DEPA $@; \ fi DEP1: $(gprof_SOURCES) @@ -95,7 +96,7 @@ dep-am: DEP .PHONY: dep dep-in dep-am -CLEANFILES = dep.sed DEP DEP1 DEP2 +CLEANFILES = dep.sed DEP DEPA DEP1 DEP2 # DO NOT DELETE THIS LINE -- mkdep uses it. # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. diff --git a/gprof/Makefile.in b/gprof/Makefile.in index af7ea2f..7880de8 100644 --- a/gprof/Makefile.in +++ b/gprof/Makefile.in @@ -138,7 +138,7 @@ POTFILES = $(sources) $(noinst_HEADERS) info_TEXINFOS = gprof.texi man_MANS = gprof.1 -CLEANFILES = dep.sed DEP DEP1 DEP2 +CLEANFILES = dep.sed DEP DEPA DEP1 DEP2 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs CONFIG_HEADER = gconfig.h @@ -706,11 +706,12 @@ po/POTFILES.in: @MAINT@ Makefile 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 > DEPA + echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> DEPA + if grep ' /' DEPA > /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' >> $@; \ + mv -f DEPA $@; \ fi DEP1: $(gprof_SOURCES) |