Add.
[shishi.git] / maint-cfg.mk
blobc140d8c14b613afe088b893f80fc8ee21da27ccf
1 # Copyright (C) 2006, 2007 Simon Josefsson.
3 # This file is part of Shishi.
5 # Shishi is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
10 # Shishi is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with Shishi; if not, see http://www.gnu.org/licenses or write
17 # to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
18 # Floor, Boston, MA 02110-1301, USA.
20 CFGFLAGS ?= --enable-gtk-doc --with-libgcrypt
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
31 mv build-aux/config.rpath{-,}
33 bootstrap: autoreconf
34 ./configure $(CFGFLAGS)
36 W32ROOT ?= $(HOME)/w32root
38 mingw32: autoreconf
39 ./configure $(CFGFLAGS) --host=i586-mingw32msvc --build=`./config.guess` --prefix=$(W32ROOT)