Make another attempt to fix vpath build for pgxc_ctl contrib module
authorPavan Deolasee <[email protected]>
Fri, 16 Sep 2016 07:07:04 +0000 (12:37 +0530)
committerPavan Deolasee <[email protected]>
Fri, 16 Sep 2016 07:07:04 +0000 (12:37 +0530)
contrib/pgxc_ctl/Makefile

index 22f385041f79c3720ab39eb630f6bb6865ac39a1..e73764bd450e4f9b21655be1dc7d5175088c116d 100644 (file)
@@ -37,7 +37,11 @@ include $(top_srcdir)/contrib/contrib-global.mk
 endif
 
 pgxc_ctl_bash.c: pgxc_ctl_conf_part_full pgxc_ctl_conf_part_minimal pgxc_ctl_conf_part_empty pgxc_ctl_bash_2
-       $(top_srcdir)/$(subdir)/make_signature
+       cd $(top_srcdir)/$(subdir) && ./make_signature
+ifeq ($(vpath_build),yes)
+       mv $(top_srcdir)/$(subdir)/signature.h .
+       mv $(top_srcdir)/$(subdir)/pgxc_ctl_bash.c .
+endif
 
 clean: clean-script