Export new ABIs. Doc fixes for new APIs.
[gnutls.git] / cfg.mk
blob7b6c9b2ec360e01e7b4b1d1b79792a66a5dfc58f
1 # Copyright (C) 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
2 # Inc.
4 # Author: Simon Josefsson
6 # This file is part of GNUTLS.
8 # This file is free software; you can redistribute it and/or modify it
9 # under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 3 of the License, or
11 # (at your option) any later version.
13 # This file is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with this file; if not, write to the Free Software Foundation,
20 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 WFLAGS ?= --enable-gcc-warnings
23 ADDFLAGS ?=
24 CFGFLAGS ?= --enable-gtk-doc $(ADDFLAGS) $(WFLAGS)
26 INDENT_SOURCES = `find . -name \*.c|grep -v -e ^./lib/gl -e ^./gl -e ^./src/cfg -e -gaa.c -e asn1_tab.c`
28 ifeq ($(.DEFAULT_GOAL),abort-due-to-no-makefile)
29 .DEFAULT_GOAL := bootstrap
30 endif
32 PODIR := lib/po
33 PO_DOMAIN := libgnutls
35 local-checks-to-skip = sc_prohibit_strcmp sc_prohibit_atoi_atof \
36 sc_error_message_uppercase sc_prohibit_have_config_h \
37 sc_require_config_h sc_require_config_h_first \
38 sc_trailing_blank sc_unmarked_diagnostics sc_immutable_NEWS \
39 sc_prohibit_magic_number_exit sc_texinfo_acronym
40 VC_LIST_ALWAYS_EXCLUDE_REGEX = ^((lib/|libextra/)?(gl|build-aux))/.*
42 autoreconf:
43 for f in $(PODIR)/*.po.in; do \
44 cp $$f `echo $$f | sed 's/.in//'`; \
45 done
46 mv lib/build-aux/config.rpath lib/build-aux/config.rpath-
47 test -f ./configure || autoreconf --install
48 test `hostname` = "gaggia" && cp lib/gl/m4/size_max.m4 lib/m4/ || true
49 mv lib/build-aux/config.rpath- lib/build-aux/config.rpath
51 update-po: refresh-po
52 for f in `ls $(PODIR)/*.po | grep -v quot.po`; do \
53 cp $$f $$f.in; \
54 done
55 git add $(PODIR)/*.po.in
56 git commit -m "Sync with TP." $(PODIR)/LINGUAS $(PODIR)/*.po.in
58 bootstrap: autoreconf
59 ./configure $(CFGFLAGS)
61 glimport:
62 gnulib-tool --m4-base gl/m4 --import
63 cd lib && gnulib-tool --m4-base gl/m4 --import
64 cd libextra && gnulib-tool --m4-base gl/m4 --import
66 # Code Coverage
68 pre-coverage:
69 ln -sf /usr/local/share/gaa/gaa.skel src/gaa.skel
71 web-coverage:
72 rm -fv `find $(htmldir)/coverage -type f | grep -v CVS`
73 cp -rv doc/coverage/* $(htmldir)/coverage/
75 upload-web-coverage:
76 cd $(htmldir) && \
77 cvs commit -m "Update." coverage
79 # Mingw32
81 W32ROOT ?= $(HOME)/gnutls4win/inst
83 mingw32: autoreconf
84 ./configure $(CFGFLAGS) --host=i586-mingw32msvc --build=`build-aux/config.guess` --with-libtasn1-prefix=$(W32ROOT) --with-libgcrypt-prefix=$(W32ROOT) --prefix $(W32ROOT)
86 .PHONY: bootstrap autoreconf mingw32
88 # Release
90 ChangeLog:
91 git log --pretty --numstat --summary --since="2005 November 07" -- | git2cl > ChangeLog
92 cat .clcopying >> ChangeLog
94 tag = $(PACKAGE)_`echo $(VERSION) | sed 's/\./_/g'`
95 htmldir = ../www-$(PACKAGE)
97 release: prepare upload web upload-web
99 prepare:
100 ! git tag -l $(tag) | grep $(PACKAGE) > /dev/null
101 rm -f ChangeLog
102 $(MAKE) ChangeLog distcheck
103 git commit -m Generated. ChangeLog
104 git tag -u b565716f! -m $(VERSION) $(tag)
106 upload:
107 git push
108 git push --tags
109 build-aux/gnupload --to alpha.gnu.org:$(PACKAGE) $(distdir).tar.bz2
110 scp $(distdir).tar.bz2 $(distdir).tar.bz2.sig igloo.linux.gr:~ftp/pub/gnutls/devel/
111 ssh igloo.linux.gr 'cd ~ftp/pub/gnutls/devel/ && sha1sum *.tar.bz2 > CHECKSUMS'
112 cp $(distdir).tar.bz2 $(distdir).tar.bz2.sig ../releases/$(PACKAGE)/
114 web:
115 cd doc && ../build-aux/gendocs.sh --html "--css-include=texinfo.css" \
116 -o ../$(htmldir)/devel/manual/ $(PACKAGE) "$(PACKAGE_NAME)"
117 cd doc/doxygen && doxygen && cd ../.. && cp -v doc/doxygen/html/* $(htmldir)/devel/doxygen/ && cd doc/doxygen/latex && make refman.pdf && cd ../../../ && cp doc/doxygen/latex/refman.pdf $(htmldir)/devel/doxygen/$(PACKAGE).pdf
118 cp -v doc/reference/html/*.html doc/reference/html/*.png doc/reference/html/*.devhelp doc/reference/html/*.css $(htmldir)/devel/reference/
119 cp -v doc/cyclo/cyclo-$(PACKAGE).html $(htmldir)/cyclo/
121 upload-web:
122 cd $(htmldir) && \
123 cvs commit -m "Update." manual/ reference/ \
124 doxygen/ devel/ cyclo/