6dadc1b8391cb4b3c0da4ca7971164825fc24386
[chickadee.git] / Makefile.am
1 ## Chickadee Game Toolkit
2 ## Copyright © 2016 David Thompson <davet@gnu.org>
3 ##
4 ## Chickadee is free software: you can redistribute it and/or modify
5 ## it under the terms of the GNU General Public License as published
6 ## by the Free Software Foundation, either version 3 of the License,
7 ## or (at your option) any later version.
8 ##
9 ## Chickadee is distributed in the hope that it will be useful, but
10 ## WITHOUT ANY WARRANTY; without even the implied warranty of
11 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 ## General Public License for more details.
13 ##
14 ## You should have received a copy of the GNU General Public License
15 ## along with this program. If not, see
16 ## <http://www.gnu.org/licenses/>.
17
18 GOBJECTS = $(SOURCES:%.scm=%.go)
19
20 nobase_mod_DATA = $(SOURCES) $(NOCOMP_SOURCES)
21 nobase_go_DATA = $(GOBJECTS)
22
23 # Make sure source files are installed first, so that the mtime of
24 # installed compiled files is greater than that of installed source
25 # files. See
26 # <http://lists.gnu.org/archive/html/guile-devel/2010-07/msg00125.html>
27 # for details.
28 guile_install_go_files = install-nobase_goDATA
29 $(guile_install_go_files): install-nobase_modDATA
30
31 CLEANFILES = $(GOBJECTS)
32 EXTRA_DIST = $(SOURCES) $(NOCOMP_SOURCES)
33 GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch -Wformat
34 SUFFIXES = .scm .go
35 .scm.go:
36 $(AM_V_GEN)$(top_builddir)/pre-inst-env $(GUILE_TOOLS) compile $(GUILE_WARNINGS) -o "$@" "$<"
37
38 moddir=$(prefix)/share/guile/site/$(GUILE_EFFECTIVE_VERSION)
39 godir=$(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/ccache
40
41 SOURCES = \
42 chickadee/config.scm \
43 chickadee/utils.scm \
44 chickadee/input/controller.scm \
45 chickadee/math.scm \
46 chickadee/math/vector.scm \
47 chickadee/math/matrix.scm \
48 chickadee/math/rect.scm \
49 chickadee/color.scm \
50 chickadee/render/gl.scm \
51 chickadee/render/gpu.scm \
52 chickadee/render/blend.scm \
53 chickadee/render/texture.scm \
54 chickadee/render/shader.scm \
55 chickadee/render/vertex-buffer.scm \
56 chickadee/render/viewport.scm \
57 chickadee/render/framebuffer.scm \
58 chickadee/render/shapes.scm \
59 chickadee/render/sprite.scm \
60 chickadee/render.scm \
61 chickadee/window.scm \
62 chickadee.scm
63
64 info_TEXINFOS = doc/chickadee.texi
65
66 chickadee_TEXINFOS = \
67 doc/fdl.texi \
68 doc/api.texi \
69 doc/chickadee.texi
70
71 dvi: # Don't build dvi docs
72
73 publish: distcheck
74 gpg --sign --armor --yes chickadee-$(VERSION).tar.gz && \
75 scp chickadee-$(VERSION).tar.gz chickadee-$(VERSION).tar.gz.asc \
76 blog@dthompson.us:/var/www/files/chickadee/