Allow vpath builds and regression tests to succeed on Mingw. Backpatch to release...
authorAndrew Dunstan <[email protected]>
Fri, 24 Dec 2010 18:32:20 +0000 (13:32 -0500)
committerAndrew Dunstan <[email protected]>
Fri, 24 Dec 2010 18:32:20 +0000 (13:32 -0500)
src/bin/pgevent/Makefile
src/interfaces/ecpg/test/Makefile

index 6b61b93bdc98e52dc10bab179fb9cd59222356ee..3690befd80cbd2e7b3cfaf6be3d68a880169bc57 100644 (file)
@@ -25,7 +25,7 @@ pgevent.dll: pgevent.def $(OBJS)
        $(DLLWRAP) --def $< -o $(NAME) $(OBJS)
 
 pgmsgevent.o: pgmsgevent.rc win32ver.rc
-       $(WINDRES) $< -o $@ --include-dir=$(top_builddir)/src/include --include-dir=$(top_srcdir)/src/include --include-dir=$(srcdir)
+       $(WINDRES) $< -o $@ --include-dir=$(top_builddir)/src/include --include-dir=$(top_srcdir)/src/include --include-dir=$(srcdir) --include-dir=.
 
 all-lib: $(NAME)
 
index 606348bb4909d6b19f49291c6c442aa4fe8584a1..cc5090f58c1c847b0534100545bf0d233a20345f 100644 (file)
@@ -28,7 +28,7 @@ endif
 ifneq ($(build_os),mingw32)
 abs_builddir := $(shell pwd)
 else
-abs_builddir := $(shell pwd -W)
+abs_builddir := $(shell sh -c "pwd -W")
 endif
 
 all install installdirs uninstall distprep:
@@ -73,7 +73,7 @@ $(top_builddir)/src/port/pg_config_paths.h: $(top_builddir)/src/Makefile.global
 # $(srcdir) to the build directory.
 
 ifdef VPATH
-remaining_files_src := $(wildcard $(srcdir)/*/*.pgc) $(wildcard $(srcdir)/expected/*.c) $(wildcard $(srcdir)/expected/*.stdout) $(wildcard $(srcdir)/expected/*.stderr)
+remaining_files_src := $(wildcard $(srcdir)/*/*.pgc) $(wildcard $(srcdir)/expected/*.c) $(wildcard $(srcdir)/expected/*.stdout) $(wildcard $(srcdir)/expected/*.stderr) $(srcdir)/resultmap
 remaining_files_build := $(patsubst $(srcdir)/%, $(abs_builddir)/%, $(remaining_files_src))
 
 all: $(remaining_files_build)