Add.
[shishi.git] / maint-cfg.mk
blobd0b5ee7bc602a06e01879d8cad0a36ac6d9098fd
1 # Copyright (C) 2006 Simon Josefsson.
3 # This file is part of Shishi.
5 # Shishi is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2, or (at your option)
8 # any later version.
10 # Shishi is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with Shishi; see the file COPYING. If not, write to the Free
17 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
18 # MA 02110-1301, USA.
20 CFGFLAGS ?= --enable-gtk-doc
22 ifeq ($(.DEFAULT_GOAL),abort-due-to-no-makefile)
23 .DEFAULT_GOAL := bootstrap
24 endif
26 gtk-doc.make:
27 gtkdocize
29 autoreconf: gtk-doc.make
30 test -f ./configure || autoreconf --install
32 bootstrap: autoreconf
33 ./configure $(CFGFLAGS)
35 W32ROOT ?= $(HOME)/w32root
37 mingw32: autoreconf
38 ./configure $(CFGFLAGS) --host=i586-mingw32msvc --build=`./config.guess` --prefix=$(W32ROOT)