summaryrefslogtreecommitdiff
path: root/examples/Makefile.am
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2017-04-12 10:51:07 +0200
committerArtyom V. Poptsov <poptsov.artyom@gmail.com>2017-04-23 07:51:52 +0300
commit25201ac2d5c113f1626108353c7e3cf1916963cb (patch)
tree5f12f0d28a55f24fa903260057e6df41f8bc7174 /examples/Makefile.am
parenttests: Use 'inet-ntop' instead of 'inet-ntoa'. (diff)
downloadguile-ssh-25201ac2d5c113f1626108353c7e3cf1916963cb.tar.gz
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 <poptsov.artyom@gmail.com>
Diffstat (limited to 'examples/Makefile.am')
-rw-r--r--examples/Makefile.am1
1 files changed, 1 insertions, 0 deletions
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" "$@"