Update.
[libtasn1.git] / maint-cfg.mk
blob0bd79d70c606148027441c5837c86f72fc60ec4a
1 # Copyright (C) 2006 Free Software Foundation
2 # Author: Simon Josefsson
4 # This file is part of LIBTASN1.
6 # This file is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
11 # This file is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this file; if not, write to the Free Software Foundation,
18 # Inc., 51 Franklin Street, Fifth Floor, Boston, 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 doc
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)