This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gprof doesn't build from cvs


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]