GITVERSION=$(shell sh -c 'git describe --dirty --always 2>/dev/null')
AM_CPPFLAGS=-DINFODIR='"$(infodir)"' @X_CFLAGS@ @CAIRO_CFLAGS@ @FRONTEND_CFLAGS@ -DSYSCONFDIR='"$(sysconfdir)"' \
-DLOCALEDIR='"$(localedir)"' -DSVGDIR='"$(svgdir)"' -D__GIT_VERSION='"$(GITVERSION)"' \
- -DCONFIGURE_OPTIONS='"@CONFIGURE_OPTIONS@"' $(headers)
+ -DCONFIGURE_OPTIONS='"@CONFIGURE_OPTIONS@"' -DDATADIR='"$(datadir)/games/xboard"' $(headers)
ACLOCAL_AMFLAGS = -I m4
themes/xiangqi/BlackPawn.svg themes/xiangqi/WhitePawn.svg \
themes/xiangqi/BlackRook.svg themes/xiangqi/WhiteRook.svg
+### directory and files for themes (and other) configuration files
+
+themesdir = $(datadir)/games/xboard/themes/conf
+dist_themes_DATA = conf/shogi conf/xq conf/chu conf/ics conf/mini conf/mini.fen conf/sho conf/sho.fen
+
### directory and files for pixmaps
pixmapsdir = $(gamedatadir)/pixmaps/textures