lib.c (config_set_var_n): Return a pointer even if we don't change the var.
[runlisp] / vars.am
CommitLineData
e29834b8
MW
1### -*-makefile-*-
2###
3### Common build-system definitions
4###
5### (c) 2020 Mark Wooding
6###
7
8###----- Licensing notice ---------------------------------------------------
9###
10### This file is part of Runlisp, a tool for invoking Common Lisp scripts.
11###
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.
16###
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
20### for more details.
21###
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/>.
24
25###--------------------------------------------------------------------------
26### Initial values for common variables.
27
28EXTRA_DIST =
29CLEANFILES =
8996f767 30SUFFIXES =
e29834b8
MW
31
32bin_PROGRAMS =
33bin_SCRIPTS =
34nodist_bin_SCRIPTS =
35
36man_MANS =
8996f767
MW
37doc_DATA =
38
39pkgdata_DATA =
10427eb2
MW
40pkgdata_SCRIPTS =
41
8996f767
MW
42pkgconfdir = $(sysconfdir)/$(PACKAGE_NAME)
43pkgconf_DATA =
e29834b8 44
e29834b8 45noinst_DATA =
8996f767
MW
46noinst_LIBRARIES =
47noinst_PROGRAMS =
e29834b8
MW
48
49###--------------------------------------------------------------------------
50### Standard configuration substitutions.
51
52## Substitute tags in files.
53confsubst = $(top_srcdir)/config/confsubst
54
55SUBSTITUTIONS = \
56 prefix=$(prefix) exec_prefix=$(exec_prefix) \
57 libdir=$(libdir) includedir=$(includedir) \
58 bindir=$(bindir) sbindir=$(sbindir) \
10427eb2 59 etcdir=$(sysconfdir) imagedir=$(imagedir) \
e29834b8
MW
60 PACKAGE=$(PACKAGE) VERSION=$(VERSION) \
61 ECLOPT=$(ECLOPT)
62
63v_subst = $(v_subst_@AM_V@)
64v_subst_ = $(v_subst_@AM_DEFAULT_V@)
65v_subst_0 = @echo " SUBST $@";
66SUBST = $(v_subst)$(confsubst)
67
68###--------------------------------------------------------------------------
8996f767
MW
69### Manpages.
70
71v_man = $(v_man_@AM_V@)
72v_man_ = $(v_man_@AM_DEFAULT_V@)
10427eb2 73v_man_0 = @echo " MAN $@";
8996f767
MW
74MAN = man
75
10427eb2 76SUFFIXES += .1 .5 .1.in .5.in .pdf
8996f767
MW
77.1.pdf:; $(v_man)$(MAN) -Tpdf -l >$@.new $< && mv $@.new $@
78.5.pdf:; $(v_man)$(MAN) -Tpdf -l >$@.new $< && mv $@.new $@
10427eb2
MW
79.1.in.1: Makefile; $(SUBST) $< $(SUBSTITUTIONS) >$@.new && mv $@.new $@
80.5.in.5: Makefile; $(SUBST) $< $(SUBSTITUTIONS) >$@.new && mv $@.new $@
81CLEANFILES += *.1 *.5 *.pdf
8996f767
MW
82
83###--------------------------------------------------------------------------
e29834b8
MW
84### List of Lisp systems.
85
86LISPS =
87
88LISPS += sbcl
89LISPS += ccl
90LISPS += clisp
91LISPS += ecl
92LISPS += cmucl
93LISPS += abcl
94
95###----- That's all, folks --------------------------------------------------