diff options
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | games/classic/local.mk | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index afe61ab..70c1db1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -61,7 +61,7 @@ dodge_balls_LDADD = \ $(ZLIB_LIBS) \ $(EXPAT_LIBS) dodge_balls_LINK = $(LINK) version.c -EXTRA_dodge_balls_DEPENDENCIES = version.c +EXTRA_dodge_balls_DEPENDENCIES = version.c $(DATA) CLEANFILES = version.c EXTRA_DIST = autogen.sh diff --git a/games/classic/local.mk b/games/classic/local.mk index 6ed0233..ee679fb 100644 --- a/games/classic/local.mk +++ b/games/classic/local.mk @@ -20,3 +20,11 @@ dist_noinst_DATA = \ nodist_games_classic_DATA = \ %reldir%/tileset.png + +# To run in place, the engine needs game data in the build directory, which may +# be different from the source directory. +$(dist_games_classic_DATA) $(dist_noinst_DATA): %reldir%/$(am__dirstamp) + $(AM_V_GEN)[ x"$(srcdir)" = x"$(builddir)" ] || cp "$(srcdir)/$@" "$@" +%reldir%/$(am__dirstamp): + @$(MKDIR_P) %reldir% + @: > %reldir%/$(am__dirstamp) |