Merge branch 'master-20091209' into gtk
[xboard.git] / Makefile.am
1
2 if ZIPPY
3   ZPY = zippy.c zippy.h
4 else
5   ZPY =
6 endif
7
8 bin_PROGRAMS = xboard
9
10 xboard_SOURCES = backend.c backend.h backendz.h \
11                  book.c \
12                  callback.c callback.h \
13                  childio.c childio.h \
14                  common.h \
15                  frontend.h \
16                  gamelist.c \
17                  gettext.h  \
18                  interface.c interface.h \
19                  lists.c lists.h \
20                  moves.c moves.h \
21                  parser.l parser.h \
22                  pgntags.c \
23                  uci.c \
24                  xboard.c xboard.h args.h \
25                  xedittags.c xedittags.h \
26                  engineoutput.c engineoutput.h \
27                  xengineoutput.c \
28                  evalgraph.c evalgraph.h xevalgraph.c \
29                  xgamelist.c xgamelist.h\
30                  xhistory.c  xhistory.h \
31                  xoptions.c \
32                  $(ZPY)
33
34 xboard_LDADD = -lm  @XAW_LIBS@ @GTK_LIBS@
35
36 EXTRA_DIST = pixmaps bitmaps winboard\
37         xboard.texi gpl.texinfo texi2man texinfo.tex xboard.man \
38         COPYRIGHT FAQ.html engine-intf.html ics-parsing.txt readme.htm readme_HGM.txt zippy.README
39
40 DISTCLEANFILES = stamp-h
41
42 AM_CPPFLAGS=-DINFODIR='"$(infodir)"' @GTK_CFLAGS@
43
44 info_TEXINFOS =  xboard.texi
45 xboard_TEXINFOS =  copyright.texi 
46 man6_MANS = xboard.man
47
48 install-data-local: $(srcdir)/xboard.conf
49         $(INSTALL_DATA) $(srcdir)/xboard.conf $(DESTDIR)/etc/xboard
50
51 xboard.man: xboard.texi copyright.texi gpl.texinfo version.texi
52         $(srcdir)/texi2man $(srcdir)/xboard.texi > xboard.man || (rm -f xboard.man ; false)