+###--------------------------------------------------------------------------
+### Main driver program and commands.
+
+## Main driver.
+sbin_SCRIPTS += keys
+EXTRA_DIST += keys.in
+CLEANFILES += keys
+keys: keys.in Makefile
+ $(SUBST) $(srcdir)/keys.in $(SUBSTVARS) >keys.new && \
+ chmod +x keys.new && mv keys.new keys
+
+## Utilities library.
+pkglib_DATA += keyfunc.sh
+EXTRA_DIST += keyfunc.sh.in
+CLEANFILES += keyfunc.sh
+keyfunc.sh: keyfunc.sh.in Makefile
+ $(SUBST) $(srcdir)/keyfunc.sh.in $(SUBSTVARS) >keyfunc.sh.new && \
+ mv keyfunc.sh.new keyfunc.sh
+
+## Commands.
+dist_pkglib_SCRIPTS += keys.archive
+dist_pkglib_SCRIPTS += keys.conceal
+dist_pkglib_SCRIPTS += keys.keeper-cards
+dist_pkglib_SCRIPTS += keys.keeper-nub
+dist_pkglib_SCRIPTS += keys.list-keepers
+dist_pkglib_SCRIPTS += keys.list-recov
+dist_pkglib_SCRIPTS += keys.new-keeper
+dist_pkglib_SCRIPTS += keys.new-recov
+dist_pkglib_SCRIPTS += keys.recover
+dist_pkglib_SCRIPTS += keys.reveal
+dist_pkglib_SCRIPTS += keys.stash
+