From 342fbcffc1b17f03ae4b9f7de3caccc5e45da0f1 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sun, 9 Feb 2014 20:17:17 -0500 Subject: Add examples Makefile. * Makefile.am (SUBDIRS): Add 'examples'. * configure.ac (AC_CONFIG_FILES): Add 'examples/Makefile'. * examples/Makefile.am: New file. --- Makefile.am | 4 +++- configure.ac | 2 +- examples/Makefile.am | 27 +++++++++++++++++++++++++++ 3 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 examples/Makefile.am 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 -- cgit v1.2.3