Install text version of opening book instead of binary version.
authorYann Dirson <ydirson@free.fr>
Thu, 6 Feb 2014 22:34:57 +0000 (23:34 +0100)
committerYann Dirson <ydirson@free.fr>
Thu, 6 Feb 2014 22:35:45 +0000 (23:35 +0100)
Difference in load time is minor, and building a binary book by default
impairs cross-compilation.  A binbook is still saved if possible.

TODO
gnushogi/Makefile.am

diff --git a/TODO b/TODO
index ab9b5e0..054e46a 100644 (file)
--- a/TODO
+++ b/TODO
@@ -3,6 +3,8 @@ Target for v1.5:
 - integrate H.G.Muller's work on the xboard protocol on top of new driver-like
   display handling
 - deprecate xshogi in favor of xboard
+- use ~/.gnushogi for binary book and hash file
+
 - make minishogi a run-time option rather than a compile-time one,
   using the "variant" mechanism of the xboard protocol
 
index 9cd9a4c..e99fbd2 100644 (file)
@@ -25,7 +25,7 @@ pkgbindatadir = $(pkglibdir)
 bin_PROGRAMS = gnushogi gnuminishogi
 noinst_PROGRAMS = pat2inc sizetest
 
-pkgbindata_DATA = gnushogi.bbk
+pkgbindata_DATA = $(top_srcdir)/misc/gnushogi.tbk
 # gnuminishogi.bbk would be empty
 
 AM_CFLAGS = @CEXTRAFLAGS@ @WARNINGS@
@@ -119,6 +119,8 @@ gnushogi-pattern.inc: $(top_srcdir)/misc/gnushogi.pat pat2inc$(EXEEXT)
 gnuminishogi-pattern.inc: $(top_srcdir)/misc/gnuminishogi.pat pat2inc$(EXEEXT)
        ./pat2inc $< $@
 
+# optional support for prebuilding a bbk
+
 gnushogi.bbk: $(top_srcdir)/misc/gnushogi.tbk gnushogi$(EXEEXT)
        rm -f $@
        cat $< > _tmp_t