Makefile: Generate detached signatures in publish task.
[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)/site-ccache
40
41 SOURCES = \
42 chickadee/config.scm \
43 chickadee/utils.scm \
44 chickadee/game-loop.scm \
45 chickadee/json.scm \
46 chickadee/heap.scm \
47 chickadee/array-list.scm \
48 chickadee/queue.scm \
49 chickadee/math.scm \
50 chickadee/math/vector.scm \
51 chickadee/math/bezier.scm \
52 chickadee/math/matrix.scm \
53 chickadee/math/quaternion.scm \
54 chickadee/math/rect.scm \
55 chickadee/math/grid.scm \
56 chickadee/math/easings.scm \
57 chickadee/math/path-finding.scm \
58 chickadee/render/color.scm \
59 chickadee/render/gl.scm \
60 chickadee/render/gpu.scm \
61 chickadee/render/blend.scm \
62 chickadee/render/texture.scm \
63 chickadee/render/shader.scm \
64 chickadee/render/buffer.scm \
65 chickadee/render/viewport.scm \
66 chickadee/render/framebuffer.scm \
67 chickadee/render/shapes.scm \
68 chickadee/render/sprite.scm \
69 chickadee/render/font.scm \
70 chickadee/render/tiled.scm \
71 chickadee/render/scene.scm \
72 chickadee/render/asset.scm \
73 chickadee/render/particles.scm \
74 chickadee/render.scm \
75 chickadee/scripting/agenda.scm \
76 chickadee/scripting/script.scm \
77 chickadee/scripting/channel.scm \
78 chickadee/scripting.scm \
79 chickadee.scm
80
81 EXTRA_DIST += \
82 COPYING \
83 examples/sprite.scm \
84 examples/lines.scm \
85 examples/text.scm \
86 examples/nine-patch.scm \
87 examples/particles.scm \
88 examples/tiled.scm \
89 examples/grid.scm \
90 examples/game-controller.scm \
91 examples/sprite-batch.scm \
92 examples/images/AUTHORS \
93 examples/images/chickadee.png \
94 examples/images/controller-buttons.png \
95 examples/images/dialog-box.png \
96 examples/images/explosion.png \
97 examples/images/shot.png \
98 examples/images/tiles.png \
99 examples/maps/example.tmx
100
101 dist_pkgdata_DATA = \
102 data/AUTHORS \
103 data/gamecontrollerdb.txt
104
105 fontsdir = $(pkgdatadir)/fonts
106 dist_fonts_DATA = \
107 data/fonts/good-neighbors.fnt \
108 data/fonts/good-neighbors.png
109
110 shadersdir = $(pkgdatadir)/shaders
111 dist_shaders_DATA = \
112 data/shaders/pbr/pbr-vert.glsl \
113 data/shaders/pbr/pbr-frag.glsl
114
115 info_TEXINFOS = doc/chickadee.texi
116 doc_chickadee_TEXINFOS = \
117 doc/fdl.texi \
118 doc/api.texi
119
120 AM_MAKEINFOHTMLFLAGS = --css-ref=https://dthompson.us/css/dthompson.css \
121 --css-include=doc/manual.css
122
123 publish: distcheck
124 gpg --sign --detach-sign --armor --yes chickadee-$(VERSION).tar.gz && \
125 scp chickadee-$(VERSION).tar.gz chickadee-$(VERSION).tar.gz.asc \
126 blog@dthompson.us:/var/www/files/chickadee/