From 0f72ec3f0c20e12ecccdc6b204b3bbd93b3d5351 Mon Sep 17 00:00:00 2001 From: Eric Branlund Date: Thu, 18 May 2023 22:36:50 -0600 Subject: [PATCH] Mac: install books into the application bundle --- lib/file/books/Makefile.am | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/file/books/Makefile.am b/lib/file/books/Makefile.am index 38570967b..06ed68380 100644 --- a/lib/file/books/Makefile.am +++ b/lib/file/books/Makefile.am @@ -19,3 +19,17 @@ angbanddir = @DEFAULT_LIB_PATH@/file/books angband_DATA = \ $(angband_files) endif + +if COCOA +# APPNAME to APPRES duplicate what's in src/Makefile.am. It would be nice to +# avoid that, but until then, they should match. +APPNAME = $(PACKAGE_NAME) +APPDIR = $(APPNAME).app +APPBNDL = $(bindir)/$(APPDIR) +APPCONT = $(APPBNDL)/Contents +APPRES = $(APPCONT)/Resources + +appfiledir = $(APPRES)/lib/file/books +appfile_DATA = \ + $(angband_files) +endif -- 2.11.0