*** empty log message ***
[libidn.git] / maint-cfg.mk
blob1ca75fe6f36f20fafc9e4b6aa83f615d0cfbbaf2
1 # Copyright (C) 2006 Simon Josefsson.
3 # This file is part of GNU Libidn.
5 # GNU Libidn is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU Lesser General Public License as
7 # published by the Free Software Foundation; either version 2.1 of
8 # the License, or (at your option) any later version.
10 # GNU Libidn 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 Lesser General Public License for more details.
15 # You should have received a copy of the GNU Lesser General Public
16 # License along with GNU Libidn; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 # 02110-1301, USA.
20 CFGFLAGS ?= --enable-java --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 doc/Makefile.gdoc:
30 printf "gdoc_MANS =\ngdoc_TEXINFOS =\n" > doc/Makefile.gdoc
32 autoreconf: gtk-doc.make doc/Makefile.gdoc
33 test -f ./configure || autoreconf --install
35 bootstrap: autoreconf
36 ./configure $(CFGFLAGS)
38 W32ROOT ?= $(HOME)/w32root
40 mingw32: autoreconf
41 ./configure --enable-gtk-doc --host=i586-mingw32msvc --build=`./config.guess` --prefix=$(W32ROOT)