Add.
[shishi.git] / maint-cfg.mk
blob8d7ae5e6a37d70872575c89a0da70901f4b6c571
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
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 --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)