3 ### Common build-system definitions
5 ### (c) 2020 Mark Wooding
8 ###----- Licensing notice ---------------------------------------------------
10 ### This file is part of Runlisp, a tool for invoking Common Lisp scripts.
12 ### Runlisp is free software: you can redistribute it and/or modify it
13 ### under the terms of the GNU General Public License as published by the
14 ### Free Software Foundation; either version 3 of the License, or (at your
15 ### option) any later version.
17 ### Runlisp is distributed in the hope that it will be useful, but WITHOUT
18 ### ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
19 ### FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 ### You should have received a copy of the GNU General Public License
23 ### along with Runlisp. If not, see <https://www.gnu.org/licenses/>.
25 ###--------------------------------------------------------------------------
26 ### Initial values for common variables.
40 pkgconfdir = $(sysconfdir)/$(PACKAGE_NAME)
47 ###--------------------------------------------------------------------------
48 ### Standard configuration substitutions.
50 ## Substitute tags in files.
51 confsubst = $(top_srcdir)/config/confsubst
54 prefix=$(prefix) exec_prefix=$(exec_prefix) \
55 libdir=$(libdir) includedir=$(includedir) \
56 bindir=$(bindir) sbindir=$(sbindir) \
57 imagedir=$(imagedir) \
58 PACKAGE=$(PACKAGE) VERSION=$(VERSION) \
61 v_subst = $(v_subst_@AM_V@)
62 v_subst_ = $(v_subst_@AM_DEFAULT_V@)
63 v_subst_0 = @echo " SUBST $@";
64 SUBST = $(v_subst)$(confsubst)
66 ###--------------------------------------------------------------------------
69 v_man = $(v_man_@AM_V@)
70 v_man_ = $(v_man_@AM_DEFAULT_V@)
71 v_man_0 = @echo " MAN $@";
74 SUFFIXES += .1 .5 .pdf
75 .1.pdf:; $(v_man)$(MAN) -Tpdf -l >$@.new $< && mv $@.new $@
76 .5.pdf:; $(v_man)$(MAN) -Tpdf -l >$@.new $< && mv $@.new $@
78 ###--------------------------------------------------------------------------
79 ### List of Lisp systems.
90 ###----- That's all, folks --------------------------------------------------