chiark / gitweb /
Makefile.am: Move cryptop stuff after keys stuff.
[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 ### Main driver program and commands.
76
77 ## Main driver.
78 bin_SCRIPTS             += keys
79 EXTRA_DIST              += keys.in
80 CLEANFILES              += keys
81 keys: keys.in Makefile
82         $(SUBST) $(srcdir)/keys.in $(SUBSTVARS) >keys.new && \
83                 chmod +x keys.new && mv keys.new keys
84
85 ## Utilities library.
86 pkglib_DATA             += keyfunc.sh
87 EXTRA_DIST              += keyfunc.sh.in
88 CLEANFILES              += keyfunc.sh
89 keyfunc.sh: keyfunc.sh.in Makefile
90         $(SUBST) $(srcdir)/keyfunc.sh.in $(SUBSTVARS) >keyfunc.sh.new && \
91                 mv keyfunc.sh.new keyfunc.sh
92
93 ## Commands.
94 dist_pkglib_SCRIPTS     += keys.conceal
95 dist_pkglib_SCRIPTS     += keys.keeper-cards
96 dist_pkglib_SCRIPTS     += keys.new-keeper
97 dist_pkglib_SCRIPTS     += keys.new-recov
98 dist_pkglib_SCRIPTS     += keys.recover
99 dist_pkglib_SCRIPTS     += keys.reveal
100 dist_pkglib_SCRIPTS     += keys.stash
101
102 ###--------------------------------------------------------------------------
103 ### Crypto operations.
104
105 ## Main driver program.
106 sbin_SCRIPTS            += cryptop
107 EXTRA_DIST              += cryptop.in
108 CLEANFILES              += cryptop
109 cryptop: cryptop.in Makefile
110         $(SUBST) $(srcdir)/cryptop.in $(SUBSTVARS) >cryptop.new && \
111                 chmod +x cryptop.new && mv cryptop.new cryptop
112
113 ## Key type libraries.
114 dist_pkglib_DATA        += ktype.gnupg
115 dist_pkglib_DATA        += ktype.seccure
116
117 ## Commands.
118 dist_pkglib_SCRIPTS     += cryptop.genkey
119 dist_pkglib_SCRIPTS     += cryptop.delkey
120 dist_pkglib_SCRIPTS     += cryptop.recover
121 dist_pkglib_SCRIPTS     += cryptop.info
122 dist_pkglib_SCRIPTS     += cryptop.public
123 dist_pkglib_SCRIPTS     += cryptop.encrypt
124 dist_pkglib_SCRIPTS     += cryptop.decrypt
125 dist_pkglib_SCRIPTS     += cryptop.sign
126 dist_pkglib_SCRIPTS     += cryptop.verify
127
128 ###----- That's all, folks --------------------------------------------------