### -*-makefile-*- ### ### Common build-system definitions ### ### (c) 2020 Mark Wooding ### ###----- Licensing notice --------------------------------------------------- ### ### This file is part of Runlisp, a tool for invoking Common Lisp scripts. ### ### Runlisp 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 3 of the License, or (at your ### option) any later version. ### ### Runlisp 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 Runlisp. If not, see . ###-------------------------------------------------------------------------- ### Initial values for common variables. EXTRA_DIST = CLEANFILES = SUFFIXES = bin_PROGRAMS = bin_SCRIPTS = nodist_bin_SCRIPTS = man_MANS = doc_DATA = pkgdata_DATA = pkgdata_SCRIPTS = pkgconfdir = $(sysconfdir)/$(PACKAGE_NAME) pkgconf_DATA = noinst_DATA = noinst_LIBRARIES = noinst_PROGRAMS = ###-------------------------------------------------------------------------- ### Standard configuration substitutions. ## Substitute tags in files. confsubst = $(top_srcdir)/config/confsubst SUBSTITUTIONS = \ prefix=$(prefix) exec_prefix=$(exec_prefix) \ libdir=$(libdir) includedir=$(includedir) \ bindir=$(bindir) sbindir=$(sbindir) \ etcdir=$(sysconfdir) imagedir=$(imagedir) \ PACKAGE=$(PACKAGE) VERSION=$(VERSION) \ ECLOPT=$(ECLOPT) v_subst = $(v_subst_@AM_V@) v_subst_ = $(v_subst_@AM_DEFAULT_V@) v_subst_0 = @echo " SUBST $@"; SUBST = $(v_subst)$(confsubst) ###-------------------------------------------------------------------------- ### Manpages. v_man = $(v_man_@AM_V@) v_man_ = $(v_man_@AM_DEFAULT_V@) v_man_0 = @echo " MAN $@"; MAN = man SUFFIXES += .1 .5 .1.in .5.in .pdf .1.pdf:; $(v_man)$(MAN) -Tpdf -l >$@.new $< && mv $@.new $@ .5.pdf:; $(v_man)$(MAN) -Tpdf -l >$@.new $< && mv $@.new $@ .1.in.1: Makefile; $(SUBST) $< $(SUBSTITUTIONS) >$@.new && mv $@.new $@ .5.in.5: Makefile; $(SUBST) $< $(SUBSTITUTIONS) >$@.new && mv $@.new $@ CLEANFILES += *.1 *.5 *.pdf ###-------------------------------------------------------------------------- ### List of Lisp systems. LISPS = LISPS += sbcl LISPS += ccl LISPS += clisp LISPS += ecl LISPS += cmucl LISPS += abcl ###----- That's all, folks --------------------------------------------------