chiark / gitweb /
runlisp.c, eval.lisp, etc.: Add new `-p' option to `princ' expressions.
[runlisp] / vars.am
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
28 EXTRA_DIST               =
29 CLEANFILES               =
30 SUFFIXES                 =
31
32 bin_PROGRAMS             =
33 bin_SCRIPTS              =
34 nodist_bin_SCRIPTS       =
35
36 man_MANS                 =
37 doc_DATA                 =
38
39 pkgdata_DATA             =
40 pkgdata_SCRIPTS          =
41
42 pkgconfdir               = $(sysconfdir)/$(PACKAGE_NAME)
43 pkgconf_DATA             =
44
45 noinst_DATA              =
46 noinst_LIBRARIES         =
47 noinst_PROGRAMS          =
48
49 ###--------------------------------------------------------------------------
50 ### Standard configuration substitutions.
51
52 ## Substitute tags in files.
53 confsubst                = $(top_srcdir)/config/confsubst
54
55 SUBSTITUTIONS = \
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) \
61         ECLOPT=$(ECLOPT)
62
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)
67
68 ###--------------------------------------------------------------------------
69 ### Manpages.
70
71 v_man                    = $(v_man_@AM_V@)
72 v_man_                   = $(v_man_@AM_DEFAULT_V@)
73 v_man_0                  = @echo "  MAN      $@";
74 MAN                      = man
75
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
82
83 ###--------------------------------------------------------------------------
84 ### List of Lisp systems.
85
86 LISPS                    =
87
88 LISPS                   += sbcl
89 LISPS                   += ccl
90 LISPS                   += clisp
91 LISPS                   += ecl
92 LISPS                   += cmucl
93 LISPS                   += abcl
94
95 ###----- That's all, folks --------------------------------------------------