aboutsummaryrefslogtreecommitdiff
path: root/gprof/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'gprof/Makefile.in')
-rw-r--r--gprof/Makefile.in9
1 files changed, 5 insertions, 4 deletions
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)