New version.
[runlisp] / Makefile.am
CommitLineData
e29834b8
MW
1### -*-makefile-*-
2###
3### Build script for `runlisp'
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
25include $(top_srcdir)/vars.am
26
27SUBDIRS =
28
29pkgdata_DATA =
30image_DATA =
31image_SCRIPTS =
32
33SUBDIRS += .
34
35ACLOCAL_AMFLAGS = -Im4
36
37###--------------------------------------------------------------------------
38### The main driver program.
39
40bin_PROGRAMS += runlisp
41runlisp_SOURCES = runlisp.c
42man_MANS += runlisp.1
43
44###--------------------------------------------------------------------------
45### Additional machinery.
46
47pkgdata_DATA += eval.lisp
48EXTRA_DIST += eval.lisp
49
50###--------------------------------------------------------------------------
51### Image dumping.
52
53nodist_bin_SCRIPTS += dump-runlisp-image
54man_MANS += dump-runlisp-image.1
55
56v_dump = $(v_dump_@AM_V@)
57v_dump_ = $(v_dump_@AM_DEFAULT_V@)
58v_dump_0 = @echo " DUMP $@";
59
60EXTRA_DIST += dump-runlisp-image.in
61CLEANFILES += dump-runlisp-image
62dump-runlisp-image: dump-runlisp-image.in
63 $(SUBST) $(srcdir)/dump-runlisp-image.in >$@.new \
64 $(SUBSTITUTIONS) && \
65 chmod +x $@.new && mv $@.new $@
66
67if DUMP_SBCL
68image_DATA += sbcl+asdf.core
69CLEANFILES += sbcl+asdf.core
70sbcl+asdf.core: dump-runlisp-image
71 $(v_dump)./dump-runlisp-image -o$@ sbcl
72endif
73
74if DUMP_CCL
75image_DATA += ccl+asdf.image
76CLEANFILES += ccl+asdf.image
77ccl+asdf.image: dump-runlisp-image
78 $(v_dump)./dump-runlisp-image -o$@ ccl
79endif
80
81if DUMP_CLISP
82image_DATA += clisp+asdf.mem
83CLEANFILES += clisp+asdf.mem
84clisp+asdf.mem: dump-runlisp-image
85 $(v_dump)./dump-runlisp-image -o$@ clisp
86endif
87
88if DUMP_ECL
89image_SCRIPTS += ecl+asdf
90CLEANFILES += ecl+asdf
91ecl+asdf: dump-runlisp-image
92 $(v_dump)./dump-runlisp-image -o$@ ecl
93endif
94
95if DUMP_CMUCL
96image_DATA += cmucl+asdf.core
97CLEANFILES += cmucl+asdf.core
98cmucl+asdf.core: dump-runlisp-image
99 $(v_dump)./dump-runlisp-image -o$@ cmucl
100endif
101
102###--------------------------------------------------------------------------
103### Benchmarking and testing.
104
105if BENCHMARK
106SUBDIRS += bench
107endif
108
109SUBDIRS += t
110
111###--------------------------------------------------------------------------
112### Distribution.
113
114## Release number.
115dist-hook::
116 echo $(VERSION) >$(distdir)/RELEASE
117
118## Additional build tools.
119EXTRA_DIST += config/auto-version
120
121###----- That's all, folks --------------------------------------------------