summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am4
-rw-r--r--configure.ac2
-rw-r--r--examples/Makefile.am27
3 files changed, 31 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 6d6ed00..80798e2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -41,4 +41,6 @@ WRAPPER_SOURCES = \
EXTRA_DIST += env.in
-SUBDIRS = doc
+SUBDIRS = \
+ doc \
+ examples
diff --git a/configure.ac b/configure.ac
index fbaf891..061e208 100644
--- a/configure.ac
+++ b/configure.ac
@@ -15,7 +15,7 @@ else
AC_MSG_ERROR([Guile 2.0 required.])
fi
-AC_CONFIG_FILES([Makefile doc/Makefile])
+AC_CONFIG_FILES([Makefile doc/Makefile examples/Makefile])
AC_CONFIG_FILES([env], [chmod +x env])
PKG_CHECK_MODULES([SDL], [sdl <= 1.3 sdl >= 1.2])
diff --git a/examples/Makefile.am b/examples/Makefile.am
new file mode 100644
index 0000000..ee458d0
--- /dev/null
+++ b/examples/Makefile.am
@@ -0,0 +1,27 @@
+AUTOMAKE_OPTIONS = gnu
+
+examplesdir = $(pkgdatadir)/examples
+examples_DATA = \
+ animation.scm \
+ coroutine.scm \
+ font.scm \
+ particles.scm \
+ shader.scm \
+ simple.scm \
+ tilemap.scm
+
+imagedir = $(pkgdatadir)/examples/images
+image_DATA = \
+ images/bullet.png \
+ images/p1_front.png \
+ images/princess.png \
+ images/stars.png \
+ images/tiles.png
+
+fontdir = $(pkgdatadir)/examples/fonts
+font_DATA = fonts/Boxy-Bold.ttf
+
+shaderdir = $(pkgdatadir)/examples/shaders
+shader_DATA = \
+ shaders/vertex-shader.glsl \
+ shaders/fragment-shader.glsl