Fix VPATH builds for src/test/ssl targets
authorDaniel Gustafsson <[email protected]>
Wed, 27 Oct 2021 19:49:48 +0000 (21:49 +0200)
committerDaniel Gustafsson <[email protected]>
Wed, 27 Oct 2021 19:49:48 +0000 (21:49 +0200)
Commit b4c4a00ea refactored the gist of the sslfiles target into a
separate makefile in order to override settings in Makefile.global.
The invocation of this this file didn't however include the absolute
path for VPATH builds, resulting in "make clean" failing. Fix by
providing the path to the new makefile.

Reported-by: Andres Freund <[email protected]>
Discussion: https://postgr.es/m/20211026174152[email protected]

src/test/ssl/Makefile

index 3592c0d184f77f41bee8e554b6da655ebf346104..cb24e31c6e265581f191515ca21d57e7930d19e7 100644 (file)
@@ -19,11 +19,11 @@ export with_ssl
 # with settings in Makefile.global.
 .PHONY: sslfiles sslfiles-clean
 sslfiles sslfiles-clean:
-       $(MAKE) -f sslfiles.mk $@
+       $(MAKE) -f $(srcdir)/sslfiles.mk $@
 
 clean distclean maintainer-clean:
        rm -rf tmp_check
-       $(MAKE) -f sslfiles.mk $@
+       $(MAKE) -f $(srcdir)/sslfiles.mk $@
 
 # Doesn't depend on sslfiles because we don't rebuild them by default
 check: