From 01f9c9f1f638b03e2a915348174762441b71a58e Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Sat, 22 Oct 2005 12:54:39 +0200 Subject: [PATCH] Make all paths relative to top_{build,src}dir --- Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index ca451487..a4f41734 100644 --- a/Makefile +++ b/Makefile @@ -7,8 +7,8 @@ CLEAN = features.log all-recursive: config.h # Automagically rerun autotools -config.status: $(top_srcdir)/configure - $(SHELL) ./config.status --recheck +$(top_builddir)/config.status: $(top_srcdir)/configure + cd $(top_builddir) && $(SHELL) ./config.status --recheck ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 $(ACLOCAL_M4): $(top_srcdir)/configure.in $(top_srcdir)/acinclude.m4 @@ -17,13 +17,14 @@ $(ACLOCAL_M4): $(top_srcdir)/configure.in $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure: $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && $(AUTOCONF) -config.h: stamp-h - @if test ! -f $@; then \ +$(top_builddir)/config.h: $(top_builddir)/stamp-h + @cd $(top_builddir) && \ + if test ! -f $@; then \ rm -f stamp-h; \ $(MAKE) stamp-h; \ else :; fi -stamp-h: $(top_srcdir)/config.h.in $(top_builddir)/config.status +$(top_builddir)/stamp-h: $(top_srcdir)/config.h.in $(top_builddir)/config.status cd $(top_builddir) \ && CONFIG_FILES= CONFIG_HEADERS=config.h \ $(SHELL) ./config.status