Fix book probing
[xboard.git] / Makefile.am
1 bin_PROGRAMS = xboard
2
3 ### if we are compiling with ZIPPY we need some extra source files
4
5 if ZIPPY
6   ZPY = zippy.c zippy.h
7 else
8   ZPY =
9 endif
10
11 ### define sources for the front-end and backend
12 GTKsources = gtk/xboard.c    gtk/xboard.h \
13              gtk/xoptions.c  gtk/xtimer.c \
14              gtk/xengineoutput.c
15
16 Xsources   = xaw/xboard.c    xaw/xboard.h    \
17              xaw/xengineoutput.c             \
18              xaw/xgamelist.c xaw/xgamelist.h \
19              xaw/xhistory.c  xaw/xhistory.h  \
20              xaw/xoptions.c \
21              bitmaps/checkmark.bm bitmaps/icon_black.bm bitmaps/icon_white.bm
22
23 if withGTK
24   FRONTENDsources = $(GTKsources)
25   FRONTENDextras = $(Xsources)
26   headers = -I gtk
27 endif
28 if withXaw
29   FRONTENDsources = $(Xsources)
30   FRONTENDextras = $(GTKsources)
31   headers = -I xaw -DX11
32 endif
33
34 xboard_SOURCES = backend.c backend.h backendz.h \
35                  book.c \
36                  childio.c childio.h \
37                  common.h \
38                  frontend.h \
39                  gamelist.c ngamelist.c \
40                  gettext.h  \
41                  lists.c lists.h \
42                  moves.c moves.h \
43                  parser.c parser.h \
44                  pgntags.c \
45                  uci.c \
46                  args.h xboard2.h \
47                  board.c board.h \
48                  draw.c draw.h \
49                  dialogs.c dialogs.h \
50                  engineoutput.c nengineoutput.c engineoutput.h \
51                  evalgraph.c nevalgraph.c evalgraph.h \
52                  history.c nhistory.c \
53                  menus.c menus.h \
54                  usounds.c usystem.c usystem.h \
55                  $(ZPY) $(FRONTENDsources)
56
57 ###
58
59 SUBDIRS = po
60 xboard_LDADD = -ldl -lm @FRONTEND_LIBS@ @X_LIBS@ @LIBINTL@ @CAIRO_LIBS@
61
62 EXTRA_DIST = pixmaps themes png sounds winboard \
63         xboard.texi gpl.texinfo texi2man texinfo.tex xboard.man xboard.desktop xboard-config.desktop \
64         xboard-fen-viewer.desktop  xboard-pgn-viewer.desktop  xboard-tourney.desktop xboard.xml \
65         COPYRIGHT FAQ.html engine-intf.html ics-parsing.txt readme.htm zippy.README \
66         xboard.conf SHORTLOG DIFFSTAT history.c ABOUT-NLS $(FRONTENDextras)
67
68 DISTCLEANFILES = stamp-h
69
70 GITVERSION=$(shell sh -c 'git describe --dirty --always 2>/dev/null')
71 AM_CPPFLAGS=-DINFODIR='"$(infodir)"' @X_CFLAGS@ @CAIRO_CFLAGS@ @FRONTEND_CFLAGS@  -DSYSCONFDIR='"$(sysconfdir)"' \
72             -DLOCALEDIR='"$(localedir)"' -DSVGDIR='"$(svgdir)"' -D__GIT_VERSION='"$(GITVERSION)"' \
73             -DCONFIGURE_OPTIONS='"@CONFIGURE_OPTIONS@"' -DDATADIR='"$(datadir)/games/xboard"' $(headers)
74
75 ACLOCAL_AMFLAGS = -I m4
76
77 info_TEXINFOS =  xboard.texi
78 xboard_TEXINFOS =  copyright.texi
79 man6_MANS = xboard.man
80
81
82 ### config file
83
84 sysconf_DATA = xboard.conf
85
86 ### icon files
87
88 icondir = @ICONSDIR@
89 dist_icon_DATA = xboard.png
90 svgicondir = @SVGICONSDIR@
91 dist_svgicon_DATA = xboard.svg
92
93
94 ### desktop files for KDE and gnome
95
96 Applicationsdir = @DESKTOPDIR@
97 Applications_DATA = xboard.desktop xboard-fen-viewer.desktop  xboard-pgn-viewer.desktop  xboard-tourney.desktop  xboard-config.desktop
98
99 ### mime file
100 mimedir = @MIMEDIR@
101 mime_DATA = xboard.xml
102
103 gamedatadir = @GAMEDATADIR@
104
105 ### directory and files for svgs
106
107 svgdir = $(gamedatadir)/themes/default
108 dist_svg_DATA = svg/icon_white.svg         svg/icon_black.svg      \
109            svg/BlackAdvisor.svg       svg/WhiteAdvisor.svg    \
110            svg/BlackArchbishop.svg    svg/WhiteArchbishop.svg  \
111            svg/BlackBishop.svg        svg/WhiteBishop.svg      \
112            svg/BlackCanon.svg         svg/WhiteCanon.svg       \
113            svg/BlackChancellor.svg    svg/WhiteChancellor.svg  \
114            svg/BlackCobra.svg         svg/WhiteCobra.svg       \
115            svg/BlackCommoner.svg      svg/WhiteCommoner.svg    \
116            svg/BlackCrownedBishop.svg svg/WhiteCrownedBishop.svg  \
117            svg/BlackCrownedRook.svg   svg/WhiteCrownedRook.svg \
118            svg/BlackElephant.svg      svg/WhiteElephant.svg    \
119            svg/BlackGoldKnight.svg    svg/WhiteGoldKnight.svg  \
120            svg/BlackGoldLance.svg   svg/WhiteGoldLance.svg    \
121            svg/BlackGoldPawn.svg    svg/WhiteGoldPawn.svg     \
122            svg/BlackGoldSilver.svg  svg/WhiteGoldSilver.svg   \
123            svg/BlackGold.svg        svg/WhiteGold.svg         \
124            svg/BlackHawk.svg        svg/WhiteHawk.svg         \
125            svg/BlackKing.svg        svg/WhiteKing.svg         \
126            svg/BlackKnight.svg      svg/WhiteKnight.svg       \
127            svg/BlackLance.svg       svg/WhiteLance.svg        \
128            svg/BlackMarshall.svg    svg/WhiteMarshall.svg     \
129            svg/BlackNightrider.svg  svg/WhiteNightrider.svg   \
130            svg/BlackPawn.svg        svg/WhitePawn.svg         \
131            svg/BlackPrincess.svg    svg/WhitePrincess.svg     \
132            svg/BlackQueen.svg       svg/WhiteQueen.svg        \
133            svg/BlackRook.svg        svg/WhiteRook.svg         \
134            svg/BlackUnicorn.svg     svg/WhiteUnicorn.svg      \
135            svg/BlackSword.svg       svg/WhiteSword.svg        \
136            svg/BlackHSword.svg      svg/WhiteHSword.svg       \
137            svg/BlackLeopard.svg     svg/WhiteLeopard.svg      \
138            svg/BlackLion.svg        svg/WhiteLion.svg         \
139            svg/BlackPromoBishop.svg svg/WhitePromoBishop.svg  \
140            svg/BlackPromoRook.svg   svg/WhitePromoRook.svg    \
141            svg/BlackPromoHorse.svg  svg/WhitePromoHorse.svg   \
142            svg/BlackPromoDragon.svg svg/WhitePromoDragon.svg  \
143            svg/BlackPromoSword.svg  svg/WhitePromoSword.svg   \
144            svg/BlackPromoHSword.svg svg/WhitePromoHSword.svg  \
145            svg/BlackHCrown.svg      svg/WhiteHCrown.svg       \
146            svg/BlackDolphin.svg     svg/WhiteDolphin.svg      \
147            svg/BlackClaw.svg        svg/WhiteClaw.svg         \
148            svg/BlackWolf.svg        svg/WhiteWolf.svg         \
149            svg/BlackCamel.svg       svg/WhiteCamel.svg        \
150            svg/BlackZebra.svg       svg/WhiteZebra.svg        \
151            svg/BlackGnu.svg         svg/WhiteGnu.svg          \
152            svg/BlackWizard.svg      svg/WhiteWizard.svg       \
153            svg/BlackViking.svg      svg/WhiteViking.svg       \
154            svg/BlackIron.svg        svg/WhiteIron.svg         \
155            svg/BlackCopper.svg      svg/WhiteCopper.svg       \
156            svg/BlackTower.svg       svg/WhiteTower.svg        \
157            svg/BlackDragon.svg      svg/WhiteDragon.svg       \
158            svg/BlackCub.svg         svg/WhiteCub.svg          \
159            svg/eo_Analyzing.svg     svg/eo_Black.svg          \
160            svg/eo_Clear.svg         svg/eo_Ponder.svg         \
161            svg/eo_Thinking.svg      svg/eo_Unknown.svg        \
162            svg/eo_White.svg
163
164 shogidir = $(gamedatadir)/themes/shogi
165 dist_shogi_DATA = \
166            themes/shogi/WhiteGold.svg        themes/shogi/WhiteCrownedBishop.svg\
167            themes/shogi/WhiteBishop.svg      themes/shogi/WhiteKing.svg\
168            themes/shogi/WhiteKnight.svg      themes/shogi/WhiteGoldKnight.svg\
169            themes/shogi/WhiteLance.svg       themes/shogi/WhiteGoldLance.svg\
170            themes/shogi/WhitePawn.svg        themes/shogi/WhiteGoldPawn.svg\
171            themes/shogi/WhiteRook.svg        themes/shogi/WhiteCrownedRook.svg\
172            themes/shogi/WhiteAdvisor.svg     themes/shogi/WhiteGoldSilver.svg\
173            themes/shogi/BlackGold.svg        themes/shogi/BlackCrownedBishop.svg\
174            themes/shogi/BlackBishop.svg      themes/shogi/BlackKing.svg\
175            themes/shogi/BlackKnight.svg      themes/shogi/BlackGoldKnight.svg\
176            themes/shogi/BlackLance.svg       themes/shogi/BlackGoldLance.svg\
177            themes/shogi/BlackPawn.svg        themes/shogi/BlackGoldPawn.svg\
178            themes/shogi/BlackRook.svg        themes/shogi/BlackCrownedRook.svg\
179            themes/shogi/BlackAdvisor.svg     themes/shogi/BlackGoldSilver.svg
180
181 xiangqidir = $(gamedatadir)/themes/xiangqi
182 dist_xiangqi_DATA = themes/xiangqi/BlackAdvisor.svg  themes/xiangqi/WhiteAdvisor.svg \
183            themes/xiangqi/BlackCanon.svg    themes/xiangqi/WhiteCanon.svg    \
184            themes/xiangqi/BlackElephant.svg themes/xiangqi/WhiteElephant.svg \
185            themes/xiangqi/BlackKnight.svg   themes/xiangqi/WhiteKnight.svg   \
186            themes/xiangqi/BlackGold.svg     themes/xiangqi/WhiteGold.svg     \
187            themes/xiangqi/BlackPawn.svg     themes/xiangqi/WhitePawn.svg     \
188            themes/xiangqi/BlackRook.svg     themes/xiangqi/WhiteRook.svg
189
190 ### directory and files for themes (and other) configuration files
191
192 themesdir = $(datadir)/games/xboard/themes/conf
193 dist_themes_DATA = conf/shogi conf/xq conf/ics conf/mini conf/mini.fen conf/sho conf/sho.fen
194
195 ### directory and files for pixmaps
196
197 pixmapsdir = $(gamedatadir)/pixmaps/textures
198 dist_pixmaps_DATA = pixmaps/cross32.png pixmaps/cross48.png pixmaps/board32.png pixmaps/board48.png pixmaps/ini32.png pixmaps/ini48.png
199
200 ### directory and files for pngs
201
202 pngdir = $(gamedatadir)/themes/textures
203 dist_png_DATA = png/hatch.png png/wood_d.png png/wood_l.png png/xqboard.png
204
205 ### directory and files for sound files
206
207 soundsdir = $(gamedatadir)/sounds
208 dist_sounds_DATA = \
209   sounds/cymbal.wav     sounds/pop2.wav   sounds/slap.wav     sounds/ding1.wav      sounds/laser.wav \
210   sounds/woodthunk.wav  sounds/gong.wav   sounds/penalty.wav  sounds/honkhonk.wav   sounds/phone.wav  sounds/roar.wav
211
212 ### the man page depends on several files, so we add a special rule
213
214 xboard.man: xboard.texi copyright.texi gpl.texinfo version.texi
215         $(srcdir)/texi2man $(srcdir)/xboard.texi > xboard.man || (rm -f xboard.man ; false)
216
217 ### install mime-type files and corresponding icons and menu entries if enabled during configure
218
219 install-data-hook: install-mime-database
220 uninstall-hook: uninstall-mime-database
221
222 install-mime-database:
223 if ENABLE_UPDATE_MIMEDB
224         -if test -z "$(DESTDIR)" -a -n "$(XDG_MIME)" -a -n "$(XDG_DESKTOP_MENU)" -a -n "$(XDG_ICON_RESOURCE)" ; then \
225                 $(XDG_MIME) install --mode system --novendor xboard.xml ;\
226                 $(XDG_DESKTOP_MENU) install --mode system --novendor xboard-pgn-viewer.desktop;\
227                 $(XDG_DESKTOP_MENU) install --mode system --novendor xboard-fen-viewer.desktop;\
228                 $(XDG_DESKTOP_MENU) install --mode system --novendor xboard-tourney.desktop;\
229                 $(XDG_DESKTOP_MENU) install --mode system --novendor xboard-config.desktop;\
230                 $(XDG_ICON_RESOURCE) install --context mimetypes --size 32 pixmaps/board32.png application-x-chess-pgn;\
231                 $(XDG_ICON_RESOURCE) install --context mimetypes --size 32 pixmaps/cross32.png application-x-xboard-trn;\
232                 $(XDG_ICON_RESOURCE) install --context mimetypes --size 32 pixmaps/ini32.png application-x-xboard-opt;\
233                 $(XDG_ICON_RESOURCE) install --context mimetypes --size 48 pixmaps/board48.png application-x-chess-pgn;\
234                 $(XDG_ICON_RESOURCE) install --context mimetypes --size 48 pixmaps/cross48.png application-x-xboard-trn;\
235                 $(XDG_ICON_RESOURCE) install --context mimetypes --size 48 pixmaps/ini48.png application-x-xboard-opt;\
236         fi
237 endif
238
239 uninstall-mime-database:
240 if ENABLE_UPDATE_MIMEDB
241         -if test -z "$(DESTDIR)" -a -n "$(XDG_MIME)" -a -n "$(XDG_DESKTOP_MENU)" -a -n "$(XDG_ICON_RESOURCE)" ; then \
242                 $(XDG_MIME) uninstall --mode system --novendor xboard.xml;\
243                 $(XDG_DESKTOP_MENU) uninstall --mode system --novendor xboard-pgn-viewer.desktop;\
244                 $(XDG_DESKTOP_MENU) uninstall --mode system --novendor xboard-fen-viewer.desktop;\
245                 $(XDG_DESKTOP_MENU) uninstall --mode system --novendor xboard-tourney.desktop;\
246                 $(XDG_DESKTOP_MENU) uninstall --mode system --novendor xboard-config.desktop;\
247                 $(XDG_ICON_RESOURCE) uninstall --context mimetypes --size 32 board32.png application-x-chess-pgn;\
248                 $(XDG_ICON_RESOURCE) uninstall --context mimetypes --size 32 cross32.png application-x-xboard-trn;\
249                 $(XDG_ICON_RESOURCE) uninstall --context mimetypes --size 32 ini32.png application-x-xboard-opt;\
250                 $(XDG_ICON_RESOURCE) uninstall --context mimetypes --size 48 board48.png application-x-chess-pgn;\
251                 $(XDG_ICON_RESOURCE) uninstall --context mimetypes --size 48 cross48.png application-x-xboard-trn;\
252                 $(XDG_ICON_RESOURCE) uninstall --context mimetypes --size 48 ini48.png application-x-xboard-opt;\
253         fi
254 endif
255
256 if OSX_APP
257 osxapp: all-recursive install install-recursive
258 macportsprefix = $(shell which port | sed s/[/]bin[/]port//)
259         $(MKDIR_P) $(datarootdir)/bin
260         $(MKDIR_P) $(datarootdir)/lib
261         $(MKDIR_P) $(sysconfdir)/gtk-2.0
262         $(MKDIR_P) $(sysconfdir)/pango
263         $(MKDIR_P) $(datadir)/themes
264         $(MKDIR_P) $(datadir)/gtk-engines
265         $(MKDIR_P) $(gamedatadir)/themes
266         $(INSTALL) ./osxapp/Info.plist $(prefix)
267         $(INSTALL) ./osxapp/PkgInfo $(prefix)
268         $(INSTALL) ./osxapp/XBoard.gtklauncher $(bindir)/XBoard
269         $(INSTALL) ./xboard $(bindir)/xboard-bin
270         cp -R ./osxapp/icons/. $(datarootdir)
271         sed -e 's?-soundProgram "aplay -q"?-soundProgram "afplay"?'\
272             -e 's?-firstChessProgram fairymax?-firstChessProgram "./fairymax"?'\
273             -e 's?-firstChessProgramNames {fairymax?-firstChessProgramNames {"fairymax" -fcp "./fairymax" -fd "~~/../../bin/fairymax"?'\
274             -e 's?"Fruit 2.1" -fcp fruit -fUCI?"fruit" -fcp "./fruit" -fd "~~/../../bin/fruit" -fUCI?'\
275             -e '/"Crafty" -fcp crafty/d'\
276             -e '/"GNU Chess" -fcp gnuchess/d'\
277             -e 's?"icc" -icshost chessclub.com -icshelper timestamp?"icc" -icshost 207.99.83.228 -icshelper timestamp?'\
278             -e 's?"kc" -icshost alanimus.com -icshelper timeseal?"vics" -icshost winboard.nl -icshelper timeseal?'\
279             -e '/; Save user settings./d'\
280             -e '/; Must be last in file to make user options prevail over system-wide settings!/d'\
281             -e '/-saveSettingsOnExit true/d'\
282             -e '/-saveSettingsFile "~\/.xboardrc"/d'\
283             -e '/-settingsFile "~\/.xboardrc"/d'<./xboard.conf >$(sysconfdir)/xboard.conf
284         echo '; OSX' >>$(sysconfdir)/xboard.conf
285         echo ';'>>$(sysconfdir)/xboard.conf
286         echo '-clockFont "Sans Bold 26" '>>$(sysconfdir)/xboard.conf
287         echo '-pieceImageDirectory "~~/themes/default"' >>$(sysconfdir)/xboard.conf
288         echo '-autoLogo true' >>$(sysconfdir)/xboard.conf
289         echo '-logoDir "~~/logos"' >>$(sysconfdir)/xboard.conf
290         echo '-logoSize 100' >>$(sysconfdir)/xboard.conf
291         echo '-openCommand "open"' >>$(sysconfdir)/xboard.conf
292         echo '-firstDirectory "~~/../../bin/fairymax"' >>$(sysconfdir)/xboard.conf
293         echo '-secondDirectory "~~/../../bin/fairymax"' >>$(sysconfdir)/xboard.conf
294         echo '-secondChessProgram "./fairymax"' >>$(sysconfdir)/xboard.conf
295         echo '-uxiAdapter "uci2wb -%variant %fcp %fd"' >>$(sysconfdir)/xboard.conf
296         echo ';' >>$(sysconfdir)/xboard.conf
297         echo '; Save user settings.' >>$(sysconfdir)/xboard.conf
298         echo '; Must be last in file to make user options prevail over system-wide settings!' >>$(sysconfdir)/xboard.conf
299         echo ';' >>$(sysconfdir)/xboard.conf
300         echo '-saveSettingsOnExit true' >>$(sysconfdir)/xboard.conf
301         echo '-saveSettingsFile "~/Library/Preferences/XBoard.conf"' >>$(sysconfdir)/xboard.conf
302         echo '-settingsFile "~/Library/Preferences/XBoard.conf"' >>$(sysconfdir)/xboard.conf
303
304         sed 's?$(macportsprefix)/lib?/tmp/skl/XBoard.app/Contents/Resources/lib?' <$(macportsprefix)/etc/gtk-2.0/gdk-pixbuf.loaders >$(sysconfdir)/gtk-2.0/gdk-pixbuf.loaders
305         sed -e 's?$(macportsprefix)/lib?/tmp/skl/XBoard.app/Contents/Resources/lib?' -e 's?$(macportsprefix)/share/locale?/tmp/skl/XBoard.app/Contents/Resources/share/locale?' <$(macportsprefix)/etc/gtk-2.0/gtk.immodules >$(sysconfdir)/gtk-2.0/gtk.immodules
306         $(INSTALL) ./osxapp/launcher_rc $(datarootdir)/
307         $(INSTALL) $(macportsprefix)/etc/gtk-2.0/im-multipress.conf $(sysconfdir)/gtk-2.0
308         $(INSTALL) ./osxapp/gtkrc $(sysconfdir)/gtk-2.0/gtkrc
309         sed -e '/ModuleFiles = .*\/etc\/pango\/pango.modules/d' <$(macportsprefix)/etc/pango/pangorc >$(sysconfdir)/pango/pangorc
310         sed -e 's?$(macportsprefix)/lib/pango/1.8.0/modules/??' <$(macportsprefix)/etc/pango/pango.modules >$(sysconfdir)/pango/pango.modules
311         cp -R $(macportsprefix)/lib/gtk-2.0 $(datarootdir)/lib
312         cp -R $(macportsprefix)/lib/gdk-pixbuf-2.0 $(datarootdir)/lib
313         cp -R $(macportsprefix)/lib/pango $(datarootdir)/lib
314         cp -R $(macportsprefix)/share/themes/Mac $(datadir)/themes
315         cp -R ./osxapp/gtk2-themes/Mac/gtk-2.0 $(datadir)/themes/Mac
316         cp -R ./osxapp/themes/default/. $(gamedatadir)/themes/default
317         cp $(macportsprefix)/share/gtk-engines/murrine.xml $(datadir)/gtk-engines/murrine.xml
318         $(INSTALL) ./png/marble_d.png $(gamedatadir)/themes/textures
319         $(INSTALL) ./png/marble_l.png $(gamedatadir)/themes/textures
320         $(INSTALL) ./png/xqwood.png $(gamedatadir)/themes/textures
321         cp -R ./osxapp/logos $(gamedatadir)/
322         cp -R $(macportsprefix)/share/strings/. $(datarootdir)/
323         for i in po/*gmo; do lang=`basename $$i .gmo`; $(INSTALL) $(macportsprefix)/share/locale/$$lang/LC_MESSAGES/gtk20.mo $(localedir)/$$lang/LC_MESSAGES/; done
324         dylibbundler -of -b -x $(bindir)/xboard-bin -d $(datarootdir)/lib -p @executable_path/../Resources/lib
325         dylibbundler -of -b -x $(datarootdir)/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-png.so -d $(datarootdir)/lib -p @executable_path/../Resources/lib
326         dylibbundler -of -b -x $(datarootdir)/lib/gtk-2.0/2.10.0/immodules/im-quartz.so -d $(datarootdir)/lib -p @executable_path/../Resources/lib
327         dylibbundler -of -b -x $(datarootdir)/lib/gtk-2.0/2.10.0/engines/libpixmap.so -d $(datarootdir)/lib -p @executable_path/../Resources/lib
328         dylibbundler -of -b -x $(datarootdir)/lib/gtk-2.0/2.10.0/engines/libmurrine.so -d $(datarootdir)/lib -p @executable_path/../Resources/lib
329         dylibbundler -of -b -x $(datarootdir)/lib/pango/1.8.0/modules/pango-arabic-lang.so -d $(datarootdir)/lib -p @executable_path/../Resources/lib
330         dylibbundler -of -b -x $(datarootdir)/lib/pango/1.8.0/modules/pango-basic-coretext.so -d $(datarootdir)/lib -p @executable_path/../Resources/lib
331         dylibbundler -of -b -x $(datarootdir)/lib/pango/1.8.0/modules/pango-basic-fc.so -d $(datarootdir)/lib -p @executable_path/../Resources/lib
332         dylibbundler -of -b -x $(datarootdir)/lib/pango/1.8.0/modules/pango-indic-lang.so -d $(datarootdir)/lib -p @executable_path/../Resources/lib
333         find ./XBoard.app -name '*.a' -print0 | xargs -0 rm
334         find ./XBoard.app -name '*.la' -print0 | xargs -0 rm
335         rm -r $(datarootdir)/lib/gtk-2.0/include
336         rm -r $(datarootdir)/share/applications
337         rm $(datarootdir)/share/info/dir
338         rm -r $(datarootdir)/share/icons
339         rm -r $(datarootdir)/share/mime
340         mv $(datarootdir)/share/games/xboard/themes/conf $(datarootdir)/share/xboard/conf
341         rm -r $(datarootdir)/share/xboard/pixmaps
342         rm -r $(datarootdir)/share/games
343 endif
344