summaryrefslogtreecommitdiff
path: root/examples/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'examples/Makefile.am')
-rw-r--r--examples/Makefile.am15
1 files changed, 14 insertions, 1 deletions
diff --git a/examples/Makefile.am b/examples/Makefile.am
index 77bbcde..6ced691 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -19,4 +19,17 @@
examplesdir = $(pkgdatadir)/examples
examples_echodir = $(pkgdatadir)/examples/echo
dist_examples_DATA = README sssh.scm ssshd.scm
-dist_examples_echo_DATA = echo/*.scm
+dist_examples_echo_DATA = echo/server.scm echo/client.scm
+
+substitute = sed -e 's,[@]GUILE[@],$(GUILE),g'
+
+SUFFIXES = .in
+
+.in:
+ $(substitute) "$^" > "$@.tmp" && \
+ chmod +x "$@.tmp" && \
+ mv "$@.tmp" "$@"
+
+CLEANFILES = \
+ sssh.scm ssshd.scm \
+ echo/server.scm echo/client.scm