more progress. recovery seems to be working now.
[distorted-keys] / Makefile.am
1 ### -*-makefile-*-
2 ###
3 ### Build script for distorted.org.uk key management
4 ###
5 ### (c) 2011 Mark Wooding
6 ###
7
8 ###----- Licensing notice ---------------------------------------------------
9 ###
10 ### This file is part of the distorted.org.uk key management suite.
11 ###
12 ### distorted-keys is free software; you can redistribute it and/or modify
13 ### it under the terms of the GNU General Public License as published by
14 ### the Free Software Foundation; either version 2 of the License, or
15 ### (at your option) any later version.
16 ###
17 ### distorted-keys is distributed in the hope that it will be useful,
18 ### but WITHOUT ANY WARRANTY; without even the implied warranty of
19 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ### GNU General Public License for more details.
21 ###
22 ### You should have received a copy of the GNU General Public License
23 ### along with distorted-keys; if not, write to the Free Software Foundation,
24 ### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25
26 bin_SCRIPTS =
27 dist_pkglib_SCRIPTS =
28 pkglib_DATA =
29 noinst_SCRIPTS =
30
31 EXTRA_DIST =
32 CLEANFILES =
33 DISTCLEANFILES =
34
35 ###--------------------------------------------------------------------------
36 ### Substitution of configuration data.
37
38 confsubst = $(top_srcdir)/config/confsubst
39 EXTRA_DIST += config/confsubst
40
41 SUBSTVARS = \
42 PACKAGE="$(PACKAGE)" VERSION="$(VERSION)" \
43 PYTHON="$(PYTHON)" \
44 bindir="$(bindir)" \
45 pkgconfdir="$(sysconfdir)/$(PACKAGE)" \
46 pkglibdir="$(pkglibdir)"
47
48 SUBST = $(AM_V_GEN)$(confsubst)
49
50 ###--------------------------------------------------------------------------
51 ### Utility programs.
52
53 ## Shamir secret-sharing.
54 bin_SCRIPTS += shamir
55 EXTRA_DIST += shamir.in
56 CLEANFILES += shamir
57 shamir: shamir.in Makefile
58 $(SUBST) $(srcdir)/shamir.in $(SUBSTVARS) >shamir.new && \
59 chmod +x shamir.new && mv shamir.new shamir
60
61 ###--------------------------------------------------------------------------
62 ### Main driver program and commands.
63
64 ## Main driver.
65 bin_SCRIPTS += keys
66 EXTRA_DIST += keys.in
67 CLEANFILES += keys
68 keys: keys.in Makefile
69 $(SUBST) $(srcdir)/keys.in $(SUBSTVARS) >keys.new && \
70 chmod +x keys.new && mv keys.new keys
71
72 ## Utilities library.
73 pkglib_DATA += keyfunc.sh
74 EXTRA_DIST += keyfunc.sh.in
75 CLEANFILES += keyfunc.sh
76 keyfunc.sh: keyfunc.sh.in Makefile
77 $(SUBST) $(srcdir)/keyfunc.sh.in $(SUBSTVARS) >keyfunc.sh.new && \
78 mv keyfunc.sh.new keyfunc.sh
79
80 ## Commands.
81 dist_pkglib_SCRIPTS += keeper-cards
82 dist_pkglib_SCRIPTS += new-keeper
83 dist_pkglib_SCRIPTS += new-recov
84 dist_pkglib_SCRIPTS += recover
85 dist_pkglib_SCRIPTS += reveal
86 dist_pkglib_SCRIPTS += stash
87
88 ###----- That's all, folks --------------------------------------------------