Makefile: Generate detached signatures in publish task.
[chickadee.git] / Makefile.am
CommitLineData
98dc87a0
DT
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
18GOBJECTS = $(SOURCES:%.scm=%.go)
19
20nobase_mod_DATA = $(SOURCES) $(NOCOMP_SOURCES)
21nobase_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.
28guile_install_go_files = install-nobase_goDATA
29$(guile_install_go_files): install-nobase_modDATA
30
31CLEANFILES = $(GOBJECTS)
32EXTRA_DIST = $(SOURCES) $(NOCOMP_SOURCES)
33GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch -Wformat
34SUFFIXES = .scm .go
35.scm.go:
36 $(AM_V_GEN)$(top_builddir)/pre-inst-env $(GUILE_TOOLS) compile $(GUILE_WARNINGS) -o "$@" "$<"
37
38moddir=$(prefix)/share/guile/site/$(GUILE_EFFECTIVE_VERSION)
fdecd79e 39godir=$(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/site-ccache
98dc87a0
DT
40
41SOURCES = \
42 chickadee/config.scm \
7977df50 43 chickadee/utils.scm \
75c5cdef 44 chickadee/game-loop.scm \
045a5ac7 45 chickadee/json.scm \
8ac63165 46 chickadee/heap.scm \
cdee6cb4 47 chickadee/array-list.scm \
756f4d75 48 chickadee/queue.scm \
98dc87a0
DT
49 chickadee/math.scm \
50 chickadee/math/vector.scm \
b544b3c7 51 chickadee/math/bezier.scm \
98dc87a0 52 chickadee/math/matrix.scm \
19cb171a 53 chickadee/math/quaternion.scm \
74669be9 54 chickadee/math/rect.scm \
7c5135bf 55 chickadee/math/grid.scm \
dd8cf461 56 chickadee/math/easings.scm \
bbd1bd13 57 chickadee/math/path-finding.scm \
7520b6c0 58 chickadee/render/color.scm \
98dc87a0
DT
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 \
d2826f74 64 chickadee/render/buffer.scm \
3227d839 65 chickadee/render/viewport.scm \
d89629e4 66 chickadee/render/framebuffer.scm \
98dc87a0
DT
67 chickadee/render/shapes.scm \
68 chickadee/render/sprite.scm \
233d13ca 69 chickadee/render/font.scm \
9c99fc7d 70 chickadee/render/tiled.scm \
fdf3b1f6
DT
71 chickadee/render/scene.scm \
72 chickadee/render/asset.scm \
5dbd832c 73 chickadee/render/particles.scm \
98dc87a0 74 chickadee/render.scm \
6a182194 75 chickadee/scripting/agenda.scm \
88534f74 76 chickadee/scripting/script.scm \
6a182194
DT
77 chickadee/scripting/channel.scm \
78 chickadee/scripting.scm \
75c5cdef 79 chickadee.scm
98dc87a0 80
07d5887a 81EXTRA_DIST += \
6ca3008c 82 COPYING \
07d5887a
DT
83 examples/sprite.scm \
84 examples/lines.scm \
85 examples/text.scm \
86 examples/nine-patch.scm \
86a3254c 87 examples/particles.scm \
6ba2755d 88 examples/tiled.scm \
7c5135bf 89 examples/grid.scm \
4607a0bc 90 examples/game-controller.scm \
48b81e45 91 examples/sprite-batch.scm \
07d5887a
DT
92 examples/images/AUTHORS \
93 examples/images/chickadee.png \
4607a0bc 94 examples/images/controller-buttons.png \
07d5887a 95 examples/images/dialog-box.png \
86a3254c 96 examples/images/explosion.png \
48b81e45 97 examples/images/shot.png \
6ba2755d 98 examples/images/tiles.png \
6ba2755d 99 examples/maps/example.tmx
07d5887a 100
fe89f847 101dist_pkgdata_DATA = \
8350f7b8
DT
102 data/AUTHORS \
103 data/gamecontrollerdb.txt
fe89f847
DT
104
105fontsdir = $(pkgdatadir)/fonts
106dist_fonts_DATA = \
107 data/fonts/good-neighbors.fnt \
108 data/fonts/good-neighbors.png
109
fdf3b1f6
DT
110shadersdir = $(pkgdatadir)/shaders
111dist_shaders_DATA = \
a903e7e1 112 data/shaders/pbr/pbr-vert.glsl \
fdf3b1f6
DT
113 data/shaders/pbr/pbr-frag.glsl
114
98dc87a0 115info_TEXINFOS = doc/chickadee.texi
a903e7e1 116doc_chickadee_TEXINFOS = \
98dc87a0 117 doc/fdl.texi \
a903e7e1 118 doc/api.texi
8a8dd25c 119
42424864
DT
120AM_MAKEINFOHTMLFLAGS = --css-ref=https://dthompson.us/css/dthompson.css \
121 --css-include=doc/manual.css
122
a2c960ad 123publish: distcheck
286d44a4 124 gpg --sign --detach-sign --armor --yes chickadee-$(VERSION).tar.gz && \
a2c960ad
DT
125 scp chickadee-$(VERSION).tar.gz chickadee-$(VERSION).tar.gz.asc \
126 blog@dthompson.us:/var/www/files/chickadee/