GOBJECTS = $(SOURCES:%.scm=%.go)
nobase_mod_DATA = $(SOURCES)
nobase_go_DATA = $(GOBJECTS)

# Make sure source files are installed first, so that the mtime of
# installed compiled files is greater than that of installed source
# files.  See
# <http://lists.gnu.org/archive/html/guile-devel/2010-07/msg00125.html>
# for details.
guile_install_go_files = install-nobase_goDATA
$(guile_install_go_files): install-nobase_modDATA

bin_SCRIPTS = bloatrunner
CLEANFILES = $(bin_SCRIPTS) \
             $(GOBJECTS)

GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch -Wformat
SUFFIXES = .scm .go
.scm.go:
	$(AM_V_GEN)$(top_builddir)/pre-inst-env $(GUILE_TOOLS) compile $(GUILE_WARNINGS) -o "$@" "$<"

moddir=$(prefix)/share/guile/site/$(GUILE_EFFECTIVE_VERSION)
godir=$(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/site-ccache

SOURCES = 					\
  game/util/assets.scm \
  game/util/pipe.scm \
  game/model/food.scm \
  game/model/hero.scm \
  game/model/key.scm \
  game/model/level.scm \
  game/model/other.scm \
  game/model/runner.scm \
  game/render/food.scm \
  game/render/hero.scm \
  game/render/key.scm \
  game/render/level.scm \
  game/render/other.scm \
  game/main.scm 

asset_files = \
  assets/images/simples_pimples.png \
  assets/images/lr_penguin2.png \
  assets/images/glamshot.png \
  assets/images/boxart.png \
  assets/images/defeat.jpg \
  assets/images/victory.jpg \
  assets/levels/level-001.map \
  assets/levels/level-002.map 

nobase_dist_pkgdata_DATA = $(asset_files)

EXTRA_DIST = 					\
  $(SOURCES)					\
  $(asset_files)				\
  README.org


