diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2021-03-16 06:03:44 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2021-03-16 06:03:44 (EDT) |
commit | 331d7f379e1ab68ad2e002284101ee670445e178 (patch) | |
tree | 9209bf69d244b0516406b2e9a5612f78e687ba28 | |
parent | 502f1bffc4a2b4cc6358770a563b03af7dc7f8b1 (diff) | |
download | dodge-balls-331d7f379e1ab68ad2e002284101ee670445e178.zip dodge-balls-331d7f379e1ab68ad2e002284101ee670445e178.tar.gz dodge-balls-331d7f379e1ab68ad2e002284101ee670445e178.tar.bz2 |
build: Link rather than copy game data
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | games/classic/local.mk | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index eaf4387..012a287 100644 --- a/configure.ac +++ b/configure.ac @@ -120,6 +120,8 @@ if test "x$XCF2PNG" = "xno"; then xcftools may need to be installed.]) fi +AC_PROG_LN_S() + AC_CONFIG_FILES([Makefile]) AC_CONFIG_HEADERS([config.h]) AC_OUTPUT() diff --git a/games/classic/local.mk b/games/classic/local.mk index ee679fb..46424a6 100644 --- a/games/classic/local.mk +++ b/games/classic/local.mk @@ -24,7 +24,8 @@ nodist_games_classic_DATA = \ # 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)/$@" "$@" + $(AM_V_GEN)[ x"$(srcdir)" = x"$(builddir)" ] || \ + $(LN_S) "$(abs_srcdir)/$@" "$@" %reldir%/$(am__dirstamp): @$(MKDIR_P) %reldir% @: > %reldir%/$(am__dirstamp) |