### -*-makefile-*- ### ### Build script for distorted.org.uk key management ### ### (c) 2011 Mark Wooding ### ###----- Licensing notice --------------------------------------------------- ### ### This program is free software; you can redistribute it and/or modify ### it under the terms of the GNU General Public License as published by ### the Free Software Foundation; either version 2 of the License, or ### (at your option) any later version. ### ### This program is distributed in the hope that it will be useful, ### but WITHOUT ANY WARRANTY; without even the implied warranty of ### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ### GNU General Public License for more details. ### ### You should have received a copy of the GNU General Public License ### along with this program; if not, write to the Free Software Foundation, ### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. bin_SCRIPTS = dist_pkglib_SCRIPTS = pkglib_DATA = noinst_SCRIPTS = EXTRA_DIST = CLEANFILES = DISTCLEANFILES = ###-------------------------------------------------------------------------- ### Substitution of configuration data. confsubst = $(top_srcdir)/config/confsubst EXTRA_DIST += config/confsubst SUBSTVARS = \ PACKAGE="$(PACKAGE)" VERSION="$(VERSION)" \ PYTHON="$(PYTHON)" \ bindir="$(bindir)" \ pkgconfdir="$(sysconfdir)/$(PACKAGE)" \ pkglibdir="$(pkglibdir)" SUBST = $(AM_V_GEN)$(confsubst) ###-------------------------------------------------------------------------- ### Utility programs. ## Shamir secret-sharing. bin_SCRIPTS += shamir EXTRA_DIST += shamir.in CLEANFILES += shamir shamir: shamir.in Makefile $(SUBST) $(srcdir)/shamir.in $(SUBSTVARS) >shamir.new && \ chmod +x shamir.new && mv shamir.new shamir ###-------------------------------------------------------------------------- ### Main driver program and commands. ## Main driver. bin_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 += keeper-cards dist_pkglib_SCRIPTS += new-keeper dist_pkglib_SCRIPTS += new-recov dist_pkglib_SCRIPTS += reveal ###----- That's all, folks --------------------------------------------------