Generate HTML doc using makeinfo, instead of obsolecent texi2html
[gnushogi.git] / Makefile.in
blob7cc94d51a32b1138ba1cdb268c48b44071ef7b88
2 # Makefile for GNU Shogi and xshogi
4 # Copyright (c) 1993, 1994 Matthias Mutz
5 # Copyright (c) 1998, 1999 Michael Vanier and the Free Software Foundation
7 # GNU Shogi is based on GNU Chess
8 # Copyright (c) 1992 Free Software Foundation
10 # This file is part of GNU Shogi.
12 # GNU Shogi is free software; you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License as published by
14 # the Free Software Foundation; either version 1, or (at your option)
15 # any later version.
17 # GNU Shogi is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 # GNU General Public License for more details.
22 # You should have received a copy of the GNU General Public License
23 # along with GNU Shogi; see the file COPYING. If not, write to
24 # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
27 ROOT = @top_srcdir@
28 BUILDROOT = @top_builddir@
29 GNUSHOGIDIR = $(BUILDROOT)/gnushogi
30 XSHOGIDIR = $(BUILDROOT)/xshogi
32 PROGNAME = @PROGNAME@
35 # Default targets.
38 all : gnushogi_compile pat2inc bbk @XSHOGI@
42 # Primary targets.
45 gnushogi_compile:
46 -cd $(GNUSHOGIDIR) && $(MAKE) $(PROGNAME)
48 pat2inc:
49 -cd $(GNUSHOGIDIR) && $(MAKE) pat2inc
51 sizetest:
52 -cd $(GNUSHOGIDIR) && $(MAKE) sizetest
54 xshogi_compile:
55 -cd $(XSHOGIDIR) && $(MAKE)
57 bbk:
58 -cd $(GNUSHOGIDIR) && $(MAKE) $(PROGNAME).bbk
62 # Installation.
65 install: gnushogi_install @XSHOGIINSTALL@
67 gnushogi_install:
68 -cd $(GNUSHOGIDIR) && $(MAKE) install
70 xshogi_install: $(XSHOGIDIR)/xshogi
71 -cd $(XSHOGIDIR) && $(MAKE) install
76 # Cleanup.
79 clean: gnushogi_clean @XSHOGICLEAN@ doc_clean
81 gnushogi_clean:
82 cd $(GNUSHOGIDIR) && $(MAKE) clean
84 xshogi_clean:
85 cd $(XSHOGIDIR) && $(MAKE) clean
87 doc_clean:
88 cd $(BUILDROOT)/doc && $(MAKE) clean
92 # Building a distribution.
95 DISTNAME = @PACKAGE_TARNAME@-@PACKAGE_VERSION@
97 dist:
98 $(MAKE) maintainerclean
99 rm -rf $(DISTNAME)
100 mkdir $(DISTNAME)
101 tar -cf - --exclude .git --exclude $(DISTNAME) $(ROOT) | (cd $(DISTNAME) && tar -xf -)
102 cd $(DISTNAME) && $(ROOT)/autogen.sh && $(ROOT)/configure
103 cd $(DISTNAME)/doc && $(MAKE) info
104 cd $(DISTNAME) && make distclean
105 tar -zcf $(DISTNAME).tar.gz $(DISTNAME)
108 # Return to a pristine pre-configuration state.
111 DISTCLEANFILES = \
112 config.cache config.log config.status config.h Makefile \
113 $(GNUSHOGIDIR)/Makefile $(GNUSHOGIDIR)/Makefile.profile \
114 $(XSHOGIDIR)/Makefile autom4te.cache
116 distclean: clean
117 rm -rf $(DISTCLEANFILES)
118 cd $(BUILDROOT)/doc && $(MAKE) distclean
121 # Extra cleanup, for the maintainer only.
124 MAINTAINERCLEANFILES = configure config.h.in
126 maintainerclean: distclean
127 rm -f $(MAINTAINERCLEANFILES)
128 cd $(BUILDROOT)/doc && $(MAKE) maintainerclean