From 25201ac2d5c113f1626108353c7e3cf1916963cb Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Wed, 12 Apr 2017 10:51:07 +0200 Subject: build: Allow VPATH builds. This fixes builds where $(builddir) != $(srcdir). * examples/Makefile.am (.in): Use $(MKDIR_P) to make the target's parent directories. * tests/common.scm (%topbuilddir): New variable. * tests/sssh-ssshd.scm (*ssshd-cmd*, *sssh-cmd*): Use it instead of %TOPDIR. Signed-off-by: Artyom V. Poptsov --- examples/Makefile.am | 1 + 1 file changed, 1 insertion(+) (limited to 'examples') diff --git a/examples/Makefile.am b/examples/Makefile.am index a602380..ba1d1e6 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -41,6 +41,7 @@ substitute = sed -e 's,[@]GUILE[@],$(GUILE),g' SUFFIXES = .in .in: + $(MKDIR_P) "`dirname "$@"`" $(substitute) "$^" > "$@.tmp" && \ chmod +x "$@.tmp" && \ mv "$@.tmp" "$@" -- cgit v1.2.3