summaryrefslogtreecommitdiff
path: root/examples/Makefile.am
blob: 1ca42823e902636d70ea98140b7bf3dd4cce0150 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
## Copyright (C) 2013, 2014, 2015, 2016 Artyom V. Poptsov <poptsov.artyom@gmail.com>
##
## This file is part of libguile-ssh.
## 
## libguile-ssh is free software: you can redistribute it and/or
## modify it under the terms of the GNU General Public License as
## published by the Free Software Foundation, either version 3 of the
## License, or (at your option) any later version.
##
## libguile-ssh is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
## General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with libguile-ssh.  If not, see
## <http://www.gnu.org/licenses/>.

bin_SCRIPTS = sssh.scm ssshd.scm
sssh_scm_SOURCES = sssh.scm.in
ssshd_scm_SOURCES = ssshd.scm.in

EXTRA_DIST = \
	sssh.scm.in		\
	ssshd.scm.in		\
	echo/server.scm.in	\
	echo/client.scm.in	\
	rrepl.scm.in		\
	rpc/client.scm.in	\
	rpc/server.scm.in	\
	sscp.scm.in		\
	pg-tunnel.scm.in	\
	uptop.scm.in

SOURCES = \
	echo/server.scm.in	\
	echo/client.scm.in	\
	rrepl.scm.in		\
	rpc/client.scm.in	\
	rpc/server.scm.in	\
	sscp.scm.in		\
	pg-tunnel.scm.in	\
	uptop.scm.in

examplesdir = $(pkgdatadir)/examples
examples_echodir = $(pkgdatadir)/examples/echo
examples_rpcdir = $(pkgdatadir)/examples/rpc
dist_examples_DATA = README rrepl.scm sscp.scm pg-tunnel.scm \
	uptop.scm
dist_examples_echo_DATA = echo/server.scm echo/client.scm
dist_examples_rpc_DATA = rpc/client.scm rpc/server.scm

substitute = sed -e 's,[@]GUILE[@],$(GUILE),g'

SUFFIXES = .in

.in:
	$(MKDIR_P) "`dirname "$@"`"
	$(substitute) "$^" > "$@.tmp" && 	\
	chmod +x "$@.tmp" &&			\
	mv "$@.tmp" "$@"

CLEANFILES = \
	$(bin_SCRIPTS) 				\
	echo/server.scm echo/client.scm		\
	rrepl.scm				\
	rpc/server.scm rpc/client.scm		\
	sscp.scm