3 ### Build script for distorted.org.uk key management
5 ### (c) 2011 Mark Wooding
8 ###----- Licensing notice ---------------------------------------------------
10 ### This program is free software; you can redistribute it and/or modify
11 ### it under the terms of the GNU General Public License as published by
12 ### the Free Software Foundation; either version 2 of the License, or
13 ### (at your option) any later version.
15 ### This program is distributed in the hope that it will be useful,
16 ### but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ### GNU General Public License for more details.
20 ### You should have received a copy of the GNU General Public License
21 ### along with this program; if not, write to the Free Software Foundation,
22 ### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
33 ###--------------------------------------------------------------------------
34 ### Substitution of configuration data.
36 confsubst = $(top_srcdir)/config/confsubst
37 EXTRA_DIST += config/confsubst
40 PACKAGE="$(PACKAGE)" VERSION="$(VERSION)" \
43 pkgconfdir="$(sysconfdir)/$(PACKAGE)" \
44 pkglibdir="$(pkglibdir)"
46 SUBST = $(AM_V_GEN)$(confsubst)
48 ###--------------------------------------------------------------------------
51 ## Shamir secret-sharing.
53 EXTRA_DIST += shamir.in
55 shamir: shamir.in Makefile
56 $(SUBST) $(srcdir)/shamir.in $(SUBSTVARS) >shamir.new && \
57 chmod +x shamir.new && mv shamir.new shamir
59 ###--------------------------------------------------------------------------
60 ### Main driver program and commands.
66 keys: keys.in Makefile
67 $(SUBST) $(srcdir)/keys.in $(SUBSTVARS) >keys.new && \
68 chmod +x keys.new && mv keys.new keys
71 pkglib_DATA += keyfunc.sh
72 EXTRA_DIST += keyfunc.sh.in
73 CLEANFILES += keyfunc.sh
74 keyfunc.sh: keyfunc.sh.in Makefile
75 $(SUBST) $(srcdir)/keyfunc.sh.in $(SUBSTVARS) >keyfunc.sh.new && \
76 mv keyfunc.sh.new keyfunc.sh
79 dist_pkglib_SCRIPTS += keeper-cards
80 dist_pkglib_SCRIPTS += new-keeper
81 dist_pkglib_SCRIPTS += new-recov
82 dist_pkglib_SCRIPTS += reveal
84 ###----- That's all, folks --------------------------------------------------