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