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