From 6bd1ec3ce96264aed72fc16d82094394f3c16695 Mon Sep 17 00:00:00 2001 From: Andres Freund Date: Tue, 16 Feb 2016 13:00:21 +0100 Subject: [PATCH] Fix Makefile.global/configure regeneration These dependencies previously didn't result in regeneration when using a source directory build. --- Makefile.global.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile.global.in b/Makefile.global.in index 0aff9236d..9fc3459ab 100644 --- a/Makefile.global.in +++ b/Makefile.global.in @@ -35,17 +35,17 @@ include $(PGXS) # with some outdated Makefile.global. # Make internally restarts whenever included Makefiles are # regenerated. -$(citus_top_builddir)/Makefile.global: $(citus_top_builddir)/Makefile.global.in @top_srcdir@/configure $(citus_top_builddir)/config.status +$(citus_top_builddir)/Makefile.global: $(citus_abs_top_srcdir)/configure $(citus_top_builddir)/Makefile.global.in $(citus_top_builddir)/config.status cd @abs_top_builddir@ && ./config.status Makefile.global # Ensure configuration is generated by the most recent configure, # useful for longer existing build directories. -$(citus_top_builddir)/config.status: @top_srcdir@/configure +$(citus_top_builddir)/config.status: $(citus_abs_top_srcdir)/configure cd @abs_top_builddir@ && ./config.status --recheck # Regenerate configure if configure.in changed -@top_srcdir@/configure: $(citus_abs_srcdir)/configure.in - cd ${citus_abs_srcdir} && ./autogen.sh +$(citus_abs_top_srcdir)/configure: $(citus_abs_top_srcdir)/configure.in + cd ${citus_abs_top_srcdir} && ./autogen.sh # If specified via configure, replace the default compiler. Normally # we'll build with the one postgres was built with. But it's useful to