Generated.
[libidn.git] / maint-cfg.mk
blob220f5cfc8e9b8dd67c954d4ebac6eb7c47a33675
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 doc/Makefile.gdoc:
27 printf "gdoc_MANS =\ngdoc_TEXINFOS =\n" > doc/Makefile.gdoc
29 autoreconf: doc/Makefile.gdoc
30 test -f ./configure || autoreconf --install
32 bootstrap: autoreconf
33 ./configure $(CFGFLAGS)
35 W32ROOT ?= $(HOME)/w32root
37 mingw32: autoreconf
38 ./configure --enable-gtk-doc --host=i586-mingw32msvc --build=`./config.guess` --prefix=$(W32ROOT)