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.
42 pkgconfdir = $(sysconfdir)/$(PACKAGE_NAME)
49 ###--------------------------------------------------------------------------
50 ### Standard configuration substitutions.
52 ## Substitute tags in files.
53 confsubst = $(top_srcdir)/config/confsubst
56 prefix=$(prefix) exec_prefix=$(exec_prefix) \
57 libdir=$(libdir) includedir=$(includedir) \
58 bindir=$(bindir) sbindir=$(sbindir) \
59 etcdir=$(sysconfdir) imagedir=$(imagedir) \
60 PACKAGE=$(PACKAGE) VERSION=$(VERSION) \
63 v_subst = $(v_subst_@AM_V@)
64 v_subst_ = $(v_subst_@AM_DEFAULT_V@)
65 v_subst_0 = @echo " SUBST $@";
66 SUBST = $(v_subst)$(confsubst)
68 ###--------------------------------------------------------------------------
71 v_man = $(v_man_@AM_V@)
72 v_man_ = $(v_man_@AM_DEFAULT_V@)
73 v_man_0 = @echo " MAN $@";
76 SUFFIXES += .1 .5 .1.in .5.in .pdf
77 .1.pdf:; $(v_man)$(MAN) -Tpdf -l >$@.new $< && mv $@.new $@
78 .5.pdf:; $(v_man)$(MAN) -Tpdf -l >$@.new $< && mv $@.new $@
79 .1.in.1: Makefile; $(SUBST) $< $(SUBSTITUTIONS) >$@.new && mv $@.new $@
80 .5.in.5: Makefile; $(SUBST) $< $(SUBSTITUTIONS) >$@.new && mv $@.new $@
81 CLEANFILES += *.1 *.5 *.pdf
83 ###--------------------------------------------------------------------------
84 ### List of Lisp systems.
95 ###----- That's all, folks --------------------------------------------------