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