From 244b6d6a4583cee8113904e9471ce47d14f1f167 Mon Sep 17 00:00:00 2001 From: Yann Dirson Date: Thu, 6 Feb 2014 23:34:57 +0100 Subject: [PATCH] Install text version of opening book instead of binary version. Difference in load time is minor, and building a binary book by default impairs cross-compilation. A binbook is still saved if possible. --- TODO | 2 ++ gnushogi/Makefile.am | 4 +++- 2 files changed, 5 insertions(+), 1 deletions(-) diff --git a/TODO b/TODO index ab9b5e0..054e46a 100644 --- 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 diff --git a/gnushogi/Makefile.am b/gnushogi/Makefile.am index 9cd9a4c..e99fbd2 100644 --- a/gnushogi/Makefile.am +++ b/gnushogi/Makefile.am @@ -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 -- 1.7.0.4