OSDN Git Service

Add ./configure option "--with-varpath=PATH"
[hengbandforosx/hengbandosx.git] / lib / save / Makefile.am
index 44812f7..d967ae9 100644 (file)
@@ -1,4 +1,20 @@
 ## Makefile.am -- Process this file with automake to process Makefile.in
 
+angband_files = \
+  delete.me
+
 EXTRA_DIST = \
-       delete.me
+  $(angband_files)
+
+if SET_GID
+angbanddir = @DEFAULT_VAR_PATH@/save
+
+angband_DATA = \
+  $(angband_files)
+endif
+
+install-data-hook:
+if SET_GID
+       chown -R root.@GAMEGROUP@ "$(DESTDIR)$(angbanddir)"
+       chmod g+w "$(DESTDIR)$(angbanddir)"
+endif