This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: gprof doesn't build from cvs
- From: Alan Modra <amodra at gmail dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: Mike Stump <mikestump at comcast dot net>, "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Sat, 2 Nov 2013 17:13:46 +1030
- 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> <87li3bd4mg dot fsf at igel dot home>
On Thu, Sep 05, 2013 at 11:01:11AM +0200, Andreas Schwab wrote:
> I think you want $< instead of $(srcdir)/$*.m, and there should be no
> need for $(notdir) at all.
Yes, that's better. I'll tidy the output file too.
* Makefile.am (.m.c): Fix input and output file specification.
* Makefile.in: Regenerate.
diff --git a/gprof/Makefile.am b/gprof/Makefile.am
index 97d8c17..cdd69be 100644
--- a/gprof/Makefile.am
+++ b/gprof/Makefile.am
@@ -66,9 +66,9 @@ CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/configure.in
%.o:%.m
.m.c:
- awk -f $(srcdir)/gen-c-prog.awk > ./$*.c \
+ awk -f $(srcdir)/gen-c-prog.awk > $@ \
FUNCTION=`(echo $*|sed -e 's,.*/,,g' -e 's/_bl//')`_blurb \
- FILE=$*.m $(srcdir)/$*.m
+ FILE=$*.m $<
POTFILES = $(sources) $(noinst_HEADERS)
po/POTFILES.in: @MAINT@ Makefile
--
Alan Modra
Australia Development Lab, IBM