This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: gprof doesn't build from cvs
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Mike Stump <mikestump at comcast dot net>
- Cc: Alan Modra <amodra at gmail dot com>, "binutils\ at sourceware dot org" <binutils at sourceware dot org>
- Date: Thu, 05 Sep 2013 11:01:11 +0200
- Subject: Re: gprof doesn't build from cvs
- Authentication-results: sourceware.org; auth=none
- References: <2FAE10CF-24E2-4BFF-87A8-8AEE6877C912 at comcast dot net> <20130905021258 dot GZ3430 at bubble dot grove dot modra dot org> <85AC120E-326D-419D-947B-2C94C92DBD97 at comcast dot net>
Mike Stump <mikestump@comcast.net> writes:
> diff --git a/binutils/gprof/Makefile.am b/binutils/gprof/Makefile.am
> index 97d8c17..b272771 100644
> --- a/binutils/gprof/Makefile.am
> +++ b/binutils/gprof/Makefile.am
> @@ -68,7 +68,7 @@ CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/configure.in
> .m.c:
> awk -f $(srcdir)/gen-c-prog.awk > ./$*.c \
> FUNCTION=`(echo $*|sed -e 's,.*/,,g' -e 's/_bl//')`_blurb \
> - FILE=$*.m $(srcdir)/$*.m
> + FILE=$(notdir $*.m) $(srcdir)/$(notdir $*.m)
I think you want $< instead of $(srcdir)/$*.m, and there should be no
need for $(notdir) at all.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."