chiark / gitweb /
more progress. recovery seems to be working now.
[distorted-keys] / Makefile.am
CommitLineData
53263601
MW
1### -*-makefile-*-
2###
3### Build script for distorted.org.uk key management
4###
5### (c) 2011 Mark Wooding
6###
7
8###----- Licensing notice ---------------------------------------------------
9###
599c8f75
MW
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
53263601
MW
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###
599c8f75 17### distorted-keys is distributed in the hope that it will be useful,
53263601
MW
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
599c8f75 23### along with distorted-keys; if not, write to the Free Software Foundation,
53263601
MW
24### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25
26bin_SCRIPTS =
27dist_pkglib_SCRIPTS =
28pkglib_DATA =
29noinst_SCRIPTS =
30
31EXTRA_DIST =
32CLEANFILES =
33DISTCLEANFILES =
34
35###--------------------------------------------------------------------------
36### Substitution of configuration data.
37
38confsubst = $(top_srcdir)/config/confsubst
39EXTRA_DIST += config/confsubst
40
41SUBSTVARS = \
42 PACKAGE="$(PACKAGE)" VERSION="$(VERSION)" \
43 PYTHON="$(PYTHON)" \
44 bindir="$(bindir)" \
45 pkgconfdir="$(sysconfdir)/$(PACKAGE)" \
46 pkglibdir="$(pkglibdir)"
47
48SUBST = $(AM_V_GEN)$(confsubst)
49
50###--------------------------------------------------------------------------
51### Utility programs.
52
53## Shamir secret-sharing.
54bin_SCRIPTS += shamir
55EXTRA_DIST += shamir.in
56CLEANFILES += shamir
57shamir: 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.
65bin_SCRIPTS += keys
66EXTRA_DIST += keys.in
67CLEANFILES += keys
68keys: keys.in Makefile
69 $(SUBST) $(srcdir)/keys.in $(SUBSTVARS) >keys.new && \
70 chmod +x keys.new && mv keys.new keys
71
72## Utilities library.
73pkglib_DATA += keyfunc.sh
74EXTRA_DIST += keyfunc.sh.in
75CLEANFILES += keyfunc.sh
76keyfunc.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.
81dist_pkglib_SCRIPTS += keeper-cards
82dist_pkglib_SCRIPTS += new-keeper
83dist_pkglib_SCRIPTS += new-recov
599c8f75 84dist_pkglib_SCRIPTS += recover
53263601 85dist_pkglib_SCRIPTS += reveal
599c8f75 86dist_pkglib_SCRIPTS += stash
53263601
MW
87
88###----- That's all, folks --------------------------------------------------