chiark / gitweb /
Multiple key types, key profiles, and user key storage.
[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 =
c47f2aba 27sbin_SCRIPTS =
53263601 28dist_pkglib_SCRIPTS =
c47f2aba 29dist_pkglib_DATA =
53263601
MW
30pkglib_DATA =
31noinst_SCRIPTS =
32
33EXTRA_DIST =
34CLEANFILES =
35DISTCLEANFILES =
36
37###--------------------------------------------------------------------------
38### Substitution of configuration data.
39
40confsubst = $(top_srcdir)/config/confsubst
41EXTRA_DIST += config/confsubst
42
43SUBSTVARS = \
44 PACKAGE="$(PACKAGE)" VERSION="$(VERSION)" \
45 PYTHON="$(PYTHON)" \
46 bindir="$(bindir)" \
47 pkgconfdir="$(sysconfdir)/$(PACKAGE)" \
c47f2aba 48 pkgstatedir="$(localstatedir)/$(PACKAGE)" \
53263601
MW
49 pkglibdir="$(pkglibdir)"
50
51SUBST = $(AM_V_GEN)$(confsubst)
52
53###--------------------------------------------------------------------------
54### Utility programs.
55
56## Shamir secret-sharing.
57bin_SCRIPTS += shamir
58EXTRA_DIST += shamir.in
59CLEANFILES += shamir
60shamir: shamir.in Makefile
61 $(SUBST) $(srcdir)/shamir.in $(SUBSTVARS) >shamir.new && \
62 chmod +x shamir.new && mv shamir.new shamir
63
c47f2aba
MW
64## Property expansion.
65bin_SCRIPTS += extract-profile
66EXTRA_DIST += extract-profile.in
67CLEANFILES += extract-profile
68extract-profile: extract-profile.in Makefile
69 $(SUBST) $(srcdir)/extract-profile.in $(SUBSTVARS) \
70 >extract-profile.new && \
71 chmod +x extract-profile.new && \
72 mv extract-profile.new extract-profile
73
74###--------------------------------------------------------------------------
75### Crypto operations.
76
77## Main driver program.
78sbin_SCRIPTS += cryptop
79EXTRA_DIST += cryptop.in
80CLEANFILES += cryptop
81cryptop: cryptop.in Makefile
82 $(SUBST) $(srcdir)/cryptop.in $(SUBSTVARS) >cryptop.new && \
83 chmod +x cryptop.new && mv cryptop.new cryptop
84
85## Key type libraries.
86dist_pkglib_DATA += ktype.gnupg
87dist_pkglib_DATA += ktype.seccure
88
89## Commands.
90dist_pkglib_SCRIPTS += cryptop.genkey
91dist_pkglib_SCRIPTS += cryptop.delkey
92dist_pkglib_SCRIPTS += cryptop.recover
93dist_pkglib_SCRIPTS += cryptop.info
94dist_pkglib_SCRIPTS += cryptop.public
95dist_pkglib_SCRIPTS += cryptop.encrypt
96dist_pkglib_SCRIPTS += cryptop.decrypt
97dist_pkglib_SCRIPTS += cryptop.sign
98dist_pkglib_SCRIPTS += cryptop.verify
99
53263601
MW
100###--------------------------------------------------------------------------
101### Main driver program and commands.
102
103## Main driver.
104bin_SCRIPTS += keys
105EXTRA_DIST += keys.in
106CLEANFILES += keys
107keys: keys.in Makefile
108 $(SUBST) $(srcdir)/keys.in $(SUBSTVARS) >keys.new && \
109 chmod +x keys.new && mv keys.new keys
110
111## Utilities library.
112pkglib_DATA += keyfunc.sh
113EXTRA_DIST += keyfunc.sh.in
114CLEANFILES += keyfunc.sh
115keyfunc.sh: keyfunc.sh.in Makefile
116 $(SUBST) $(srcdir)/keyfunc.sh.in $(SUBSTVARS) >keyfunc.sh.new && \
117 mv keyfunc.sh.new keyfunc.sh
118
119## Commands.
c47f2aba
MW
120dist_pkglib_SCRIPTS += keys.conceal
121dist_pkglib_SCRIPTS += keys.keeper-cards
122dist_pkglib_SCRIPTS += keys.new-keeper
123dist_pkglib_SCRIPTS += keys.new-recov
124dist_pkglib_SCRIPTS += keys.recover
125dist_pkglib_SCRIPTS += keys.reveal
126dist_pkglib_SCRIPTS += keys.stash
53263601
MW
127
128###----- That's all, folks --------------------------------------------------