From 331d7f379e1ab68ad2e002284101ee670445e178 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Tue, 16 Mar 2021 06:03:44 -0400 Subject: build: Link rather than copy game data --- 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) -- cgit v0.9.1