OSDN Git Service

Mac: install books into the application bundle vauto3.0.0-alpha83-0f72ec3f0
authorEric Branlund <ebranlund@fastmail.com>
Fri, 19 May 2023 04:36:50 +0000 (22:36 -0600)
committerEric Branlund <ebranlund@fastmail.com>
Fri, 19 May 2023 04:36:50 +0000 (22:36 -0600)
lib/file/books/Makefile.am

index 3857096..06ed683 100644 (file)
@@ -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