gprof doesn't build from cvs

Alan Modra amodra@gmail.com
Sat Nov 2 06:43:00 GMT 2013


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



More information about the Binutils mailing list