From 57a46fed5de2e86b1244f68008e1a68217255386 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Thu, 6 May 2010 23:13:24 +0200 Subject: [PATCH] Generate build_info.c in the builddir not in the srcdir. --- src/ChangeLog | 5 +++++ src/Makefile.am | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 4ba7cf46..13238611 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2010-05-06 Giuseppe Scrivano + + * Makefile.am (build_info.c): Generate build_info.c in the builddir, + not srcdir. + 2010-05-05 Giuseppe Scrivano * http.c (gethttp): Give a nicer message on a malformed status line. diff --git a/src/Makefile.am b/src/Makefile.am index e1b997ee..8a6148ee 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -64,8 +64,10 @@ MD5_LDADD = @MD5_LDADD@ cd ../lib && $(MAKE) $(AM_MAKEFLAGS) build_info.c: $(srcdir)/Makefile.am $(srcdir)/build_info.c.in + cp $(srcdir)/build_info.c.in . $(PERL) $(top_srcdir)/build-aux/build_info.pl \ - $(srcdir)/build_info.c + $(abs_builddir)/build_info.c + rm -f build_info.c.in ESCAPEQUOTE = sed -e 's/[\\"]/\\&/g' -e 's/\\"/"/' -e 's/\\";$$/";/' version.c: $(wget_SOURCES) ../lib/libgnu.a $(MD5_LDADD) \ -- 2.39.2