3 ### Build script for distorted.org.uk key management
5 ### (c) 2011 Mark Wooding
8 ###----- Licensing notice ---------------------------------------------------
10 ### This file is part of the distorted.org.uk key management suite.
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.
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.
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.
35 ###--------------------------------------------------------------------------
36 ### Substitution of configuration data.
38 confsubst = $(top_srcdir)/config/confsubst
39 EXTRA_DIST += config/confsubst
42 PACKAGE="$(PACKAGE)" VERSION="$(VERSION)" \
45 pkgconfdir="$(sysconfdir)/$(PACKAGE)" \
46 pkglibdir="$(pkglibdir)"
48 SUBST = $(AM_V_GEN)$(confsubst)
50 ###--------------------------------------------------------------------------
53 ## Shamir secret-sharing.
55 EXTRA_DIST += shamir.in
57 shamir: shamir.in Makefile
58 $(SUBST) $(srcdir)/shamir.in $(SUBSTVARS) >shamir.new && \
59 chmod +x shamir.new && mv shamir.new shamir
61 ###--------------------------------------------------------------------------
62 ### Main driver program and commands.
68 keys: keys.in Makefile
69 $(SUBST) $(srcdir)/keys.in $(SUBSTVARS) >keys.new && \
70 chmod +x keys.new && mv keys.new keys
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
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
88 ###----- That's all, folks --------------------------------------------------