Updating to version 1.3, release made by Mike Vanier (mvanier@bbb.caltech.edu).
[gnushogi.git] / Makefile.in
1 #
2 # Makefile for GNU Shogi and xshogi
3 #
4 # Copyright (c) 1993, 1994 Matthias Mutz
5 # Copyright (c) 1998, 1999 Michael Vanier and the Free Software Foundation
6 #
7 # GNU Shogi is based on GNU Chess
8 # Copyright (c) 1992 Free Software Foundation
9 #
10 # This file is part of GNU Shogi.
11 #
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.
16 #
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.
21 #
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.
25 #
26
27 GNUSHOGIDIR = ./gnushogi
28 XSHOGIDIR   = ./xshogi
29
30 #
31 # Default targets.
32 #
33
34 all : gnushogi_compile pat2inc gnushogi.bbk @XSHOGI@ 
35
36
37 #
38 # Primary targets.
39 #
40
41 gnushogi_compile:
42         -cd $(GNUSHOGIDIR); $(MAKE) gnushogi
43
44 pat2inc:
45         -cd $(GNUSHOGIDIR); $(MAKE) pat2inc
46
47 sizetest:
48         -cd $(GNUSHOGIDIR); $(MAKE) sizetest
49
50 xshogi_compile:
51         -cd $(XSHOGIDIR); $(MAKE)
52
53 gnushogi.bbk:
54         -cd $(GNUSHOGIDIR); $(MAKE) gnushogi.bbk
55
56
57 #
58 # Installation.
59 #
60
61 install: gnushogi_install @XSHOGIINSTALL@
62
63 gnushogi_install:
64         -cd $(GNUSHOGIDIR); $(MAKE) install
65
66 xshogi_install: $(XSHOGIDIR)/xshogi
67         -cd $(XSHOGIDIR); $(MAKE) install
68
69
70
71 #
72 # Cleanup.
73 #
74
75 clean: gnushogi_clean @XSHOGICLEAN@
76
77 gnushogi_clean:
78         cd $(GNUSHOGIDIR); $(MAKE) clean
79
80 xshogi_clean:
81         cd $(XSHOGIDIR); $(MAKE) clean
82
83
84 #
85 # Return to a pristine pre-configuration state.
86 #
87
88 DISTCLEANFILES = \
89         config.cache config.log config.status config.h \
90         Makefile $(GNUSHOGIDIR)/Makefile $(XSHOGIDIR)/Makefile
91
92 distclean: clean
93         for file in $(DISTCLEANFILES); do \
94         if [ -f $$file ]; then rm $$file; fi; \
95         done
96
97
98 #
99 # Extra cleanup, for the maintainer only :-)
100 #
101
102 MAINTAINERCLEANFILES = configure config.h.in doc/gnushogi.info
103
104 maintainerclean: distclean
105         for file in $(MAINTAINERCLEANFILES); do \
106         if [ -f $$file ]; then rm $$file; fi; \
107         done
108