translated a handfull of strings and set the codeset to UTF-8 for the translations.
[xboard.git] / Makefile.in
1 #
2 # Run ./configure to generate a Makefile from Makefile.in
3 # See INSTALL for more information
4 # $Id$
5 #
6
7 PRODUCT = @PRODUCT@
8 VERSION = @VERSION@
9 PATCHLEVEL = @PATCHLEVEL@
10
11 SHELL = /bin/sh
12 srcdir = @srcdir@
13 VPATH = @srcdir@
14
15 prefix = @prefix@
16 exec_prefix = @exec_prefix@
17 bindir = @bindir@
18 datarootdir = @datarootdir@
19 datadir = @datadir@
20 localedir = $(datadir)/locale
21 mandir = @mandir@
22 man6dir = $(mandir)/man6
23 man6ext = .6
24 # Yuck; the autoconf generated configure script sets an infodir variable
25 # and provides a command-line flag to change it, but the default is 
26 # /usr/info instead of /usr/share/info.
27 infodir = $(prefix)/share/info
28
29 CC = @CC@
30 CFLAGS = @CFLAGS@ @CPPFLAGS@ -DINFODIR=\"$(infodir)\"
31 ALL_CFLAGS = -I. -I$(srcdir) @X_CFLAGS@ @CONF_CFLAGS@ $(CFLAGS)
32 DEFINES = @DEFS@ -DLOCALEDIR=\"$(localedir)\"
33 INSTALL = @INSTALL@
34 INSTALL_DATA = @INSTALL_DATA@
35 INSTALL_PROGRAM = @INSTALL_PROGRAM@
36 LDFLAGS = @LDFLAGS@
37 ALL_LDFLAGS = @CONF_LDFLAGS@ $(LDFLAGS)
38 LEX = @LEX@
39 LEXFLAGS = 
40 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
41 LIBS = @X_LIBS@ @XAW_LIBS@ @PRE_XMULIB@ -lXmu @POST_XMULIB@ -lXt -lXext \
42         @X_PRE_LIBS@ -lX11 @X_EXTRA_LIBS@ @LTLIBINTL@ @LIBS@ -lm
43 NROFF = @NROFF@
44 NROFFFLAGS = @NROFFFLAGS@
45
46 DISTSOURCE = acconfig.h AUTHORS backend.c backend.h backendz.h bitmaps  \
47   ChangeLog ChangeLog.2 childio.c childio.h cmail.in common.h           \
48   config.guess config.h.in config.sub configure configure.in COPYING    \
49   COPYRIGHT copyright.texi engine-intf.html FAQ.html frontend.h         \
50   gamelist.c gpl.texinfo ics-parsing.txt INSTALL install-sh lists.c     \
51   lists.h Makefile.in mkinstalldirs moves.c moves.h NEWS parser.h       \
52   parser.l pgntags.c pixmaps pxboard READ_ME shiphtml sounds texi2man   \
53   ToDo winboard xboard.c xboard.h xboard.texi xboard.texinfo.in         \
54   xedittags.c xedittags.h xgamelist.c xgamelist.h xhistory.c xhistory.h \
55   zic2xpm.c zic2xpm.man zippy.c zippy.h zippy.lines zippy.README
56
57 PSEUDOSOURCE = parser.c xboard.man xboard.info xboard.txt zic2xpm.txt FAQ
58
59 DISTDIR = @PRODUCT@-@VERSION@.@PATCHLEVEL@
60
61 XBOARDOBJ = parser.o xboard.o backend.o moves.o childio.o gamelist.o \
62         lists.o pgntags.o xgamelist.o xedittags.o xhistory.o @ZIPPY_O@
63
64 default: xboard pot zic2xpm
65
66 all: default pseudosource info FAQ html dvi ps
67
68 install: installdirs default
69         $(INSTALL_PROGRAM) -s xboard $(DESTDIR)$(bindir)/xboard
70         $(INSTALL_PROGRAM) -s zic2xpm $(DESTDIR)$(bindir)/zic2xpm
71         $(INSTALL_PROGRAM) cmail $(DESTDIR)$(bindir)/cmail
72         $(INSTALL_PROGRAM) $(srcdir)/pxboard $(DESTDIR)$(bindir)/pxboard
73         $(INSTALL_DATA) $(srcdir)/xboard.man $(DESTDIR)$(man6dir)/xboard$(man6ext)
74         $(INSTALL_DATA) $(srcdir)/zic2xpm.man $(DESTDIR)$(man6dir)/zic2xpm$(man6ext)
75         $(INSTALL_DATA) xboard.info $(DESTDIR)$(infodir)/xboard.info
76         (cd po && $(MAKE) $@)
77         -PATH=$$PATH:/sbin:/usr/sbin install-info \
78                 $(DESTDIR)$(infodir)/xboard.info $(DESTDIR)$(infodir)/dir
79
80 installdirs: mkinstalldirs
81         if [ -n "$(DESTDIR)" ] ; then \
82                 if [ 0 == `echo $(DESTDIR) | grep -c "^/"` ] ; then \
83                         echo "DESTDIR must be an absolute path name"; \
84                         exit 1 ; \
85                 fi ; \
86         fi ;
87         $(srcdir)/mkinstalldirs $(DESTDIR)$(bindir) $(DESTDIR)$(mandir) $(DESTDIR)$(man6dir) $(DESTDIR)$(infodir)
88
89 uninstall:
90         if [ -n "$(DESTDIR)" ] ; then \
91                 if [ 0 == `echo $(DESTDIR) | grep -c "^/"` ] ; then \
92                         echo "DESTDIR must be an absolute path name"; \
93                         exit 1 ; \
94                 fi ; \
95         fi ;
96         rm -f $(DESTDIR)$(bindir)/xboard $(DESTDIR)$(bindir)/cmail $(DESTDIR)$(bindir)/pxboard
97         rm -f $(DESTDIR)$(bindir)/zic2xpm
98         rm -f $(DESTDIR)$(man6dir)/xboard$(man6ext) $(DESTDIR)$(man6dir)/cmail$(man6ext)
99         rm -f $(DESTDIR)$(man6dir)/zic2xpm$(man6ext)
100         rm -f $(DESTDIR)$(infodir)/xboard.info
101         (cd po && $(MAKE) $@)
102         -PATH=$$PATH:/sbin:/usr/sbin install-info --delete \
103                 $(DESTDIR)$(infodir)/xboard.info $(DESTDIR)$(infodir)/dir
104
105 clean:
106         rm -f xboard zic2xpm *.o xboard.txt zic2xpm.txt $(LEX_OUTPUT_ROOT).c
107         rm -f xboard*.html xboard.aux* xboard.cp* xboard.dvi xboard.fn*
108         rm -f xboard.ky* xboard.log xboard.pg* xboard.toc xboard.tp*
109         rm -f xboard.vr* xboard.ps
110
111 distclean: clean tidy
112         (cd po && $(MAKE) $@)
113         rm -f config.cache config.log config.status Makefile 
114         rm -f config.h stamp-h xboard.texinfo cmail
115         -cd winboard ; make -f cygwin.mak clean
116
117 mostlyclean: clean
118
119 maintainer-clean: distclean
120         @echo "This command is intended for maintainers to use;"
121         @echo "it deletes files that may require special tools to rebuild."
122         rm -f $(PSEUDOSOURCE)
123         -cd winboard ; make -f cygwin.mak maintainer-clean
124
125 TAGS:
126         etags *.c *.h
127
128 info: xboard.info
129
130 xboard.info: xboard.texinfo xboard.texi gpl.texinfo configure.in
131         makeinfo --no-split -I $(srcdir) xboard.texinfo
132
133 ps: xboard.ps
134
135 xboard.ps: xboard.dvi   
136         dvips -o xboard.ps xboard.dvi
137
138 dvi: xboard.dvi
139
140 xboard.dvi: xboard.texinfo xboard.texi gpl.texinfo configure.in
141         TEXINPUTS=.:$(srcdir): texi2dvi xboard.texinfo
142
143 html: xboard.html
144
145 xboard.html: xboard.texinfo xboard.texi gpl.texinfo configure.in
146         texi2html -split_chapter -I $(srcdir) xboard.texinfo
147
148 FAQ: FAQ.html
149         lynx -dump -nolist $(srcdir)/FAQ.html > FAQ
150
151 pseudosource: $(PSEUDOSOURCE)
152
153 dist: distclean
154         if [ -f winboard/WINBOARD.HLP ] ; then mv winboard/WINBOARD.HLP winboard/winboard.hlp ; fi
155         rm -rf $(DISTDIR)
156         mkdir $(DISTDIR)
157         cp -a $(DISTSOURCE) $(DISTDIR)/
158         (cd linux && make pseudosource && \
159                      cp $(PSEUDOSOURCE) -a ../$(DISTDIR)/) || \
160             cp -a $(PSEUDOSOURCE) $(DISTDIR)/
161         tar cvf - $(DISTDIR) | gzip > $(DISTDIR).tar.gz
162         rm -rf $(DISTDIR)
163
164 check: all
165
166 .SUFFIXES:
167 .SUFFIXES: .c .o .man .txt
168
169 .c.o:
170         $(CC) $(DEFINES) $(ALL_CFLAGS) -c $<
171
172 .man.txt:
173         $(NROFF) $(NROFFFLAGS) $< | cat -s > $*.txt \
174                 || (rm -f $*.txt ; false)
175
176 xboard: $(XBOARDOBJ)
177         $(CC) -o xboard $(ALL_LDFLAGS) $(XBOARDOBJ) $(LIBS)
178
179 pot:
180         rm -f po/stamp-po
181         (cd po && $(MAKE))
182
183 zic2xpm: zic2xpm.o
184         $(CC) -o zic2xpm zic2xpm.o
185
186 parser.c: parser.l
187         $(LEX) $(LEXFLAGS) $(srcdir)/parser.l
188         mv $(LEX_OUTPUT_ROOT).c parser.c
189
190 parser.o: parser.c
191
192 xboard.man: xboard.texinfo xboard.texi copyright.texi gpl.texinfo
193         $(srcdir)/texi2man xboard.texinfo > xboard.man \
194                 || (rm -f xboard.man ; false)
195
196 tidy:
197         rm -f ,* .,* .emacs_[0-9]* core a.out *~ *.BAK *.CKP .nfs*
198
199 backend.o: backendz.h
200 backend.o: config.h
201 backend.o: common.h
202 backend.o: frontend.h
203 backend.o: backend.h lists.h
204 backend.o: parser.h
205 backend.o: moves.h
206 backend.o: zippy.h
207 childio.o: config.h
208 childio.o: common.h
209 childio.o: frontend.h
210 gamelist.o: config.h
211 gamelist.o: common.h
212 gamelist.o: frontend.h
213 gamelist.o: backend.h lists.h
214 gamelist.o: parser.h
215 lists.o: config.h
216 lists.o: common.h
217 lists.o: lists.h
218 moves.o: config.h
219 moves.o: common.h
220 moves.o: backend.h lists.h
221 moves.o: moves.h
222 moves.o: parser.h
223 parser.o: config.h
224 parser.o: common.h
225 parser.o: backend.h
226 parser.o: frontend.h
227 parser.o: parser.h
228 parser.o: moves.h
229 pgntags.o: config.h
230 pgntags.o: common.h
231 pgntags.o: frontend.h
232 pgntags.o: backend.h lists.h
233 pgntags.o: parser.h
234 xboard.o: config.h
235 xboard.o: common.h
236 xboard.o: frontend.h
237 xboard.o: backend.h lists.h
238 xboard.o: moves.h
239 xboard.o: xboard.h
240 xboard.o: childio.h
241 xboard.o: $(srcdir)/bitmaps/bitmaps.h
242 xboard.o: xgamelist.h
243 xboard.o: xedittags.h
244 xboard.o: xhistory.h
245 xedittags.o: config.h
246 xedittags.o: common.h
247 xedittags.o: frontend.h
248 xedittags.o: backend.h lists.h
249 xedittags.o: xboard.h
250 xedittags.o: xedittags.h
251 xgamelist.o: config.h
252 xgamelist.o: common.h
253 xgamelist.o: frontend.h
254 xgamelist.o: backend.h lists.h
255 xgamelist.o: xboard.h
256 xgamelist.o: xgamelist.h
257 xhistory.o: config.h
258 xhistory.o: common.h
259 xhistory.o: frontend.h
260 xhistory.o: backend.h
261 xhistory.o: xboard.h
262 xhistory.o: xhistory.h
263 xhistory.o: lists.h
264 zippy.o: backend.h
265 zippy.o: backendz.h
266 zippy.o: config.h
267 zippy.o: common.h
268 zippy.o: zippy.h
269 zippy.o: frontend.h
270