1 # Copyright (C) 2006, 2007, 2008 Free Software Foundation
3 # Author: Simon Josefsson
5 # This file is part of GNUTLS.
7 # This file is free software; you can redistribute it and/or modify it
8 # under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 3 of the License, or
10 # (at your option) any later version.
12 # This file is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 # General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with this file; if not, write to the Free Software Foundation,
19 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 CFGFLAGS ?
= --enable-developer-mode
--enable-gtk-doc
23 INDENT_SOURCES
= `find . -name \*.c|grep -v -e ^./lgl -e ^./gl -e ^./src/cfg -e -gaa.c -e asn1_tab.c`
25 ifeq ($(.DEFAULT_GOAL
),abort-due-to-no-makefile
)
26 .DEFAULT_GOAL
:= bootstrap
30 for f in po
/*.po.in
; do \
31 cp
$$f `echo $$f | sed 's/.in//'`; \
33 mv build-aux
/config.rpath build-aux
/config.rpath-
34 test -f .
/configure || autoreconf
--install
35 mv build-aux
/config.rpath- build-aux
/config.rpath
38 for f in
`ls po/*.po | grep -v quot.po`; do \
42 git-commit
-m
"Sync with TP." po
/LINGUAS po
/*.po.in
45 .
/configure
$(CFGFLAGS
)
47 LIBGCRYPTROOT ?
= $(HOME
)/w32root
50 .
/configure
$(CFGFLAGS
) --host
=i586-mingw32msvc
--build
=`./config.guess` --with-included-libtasn1
--with-included-opencdk
--with-libgcrypt-prefix
=$(LIBGCRYPTROOT
)
52 .PHONY
: bootstrap autoreconf mingw32
55 git log
--pretty
--numstat
--summary
--since
="2005 November 07" -- | git2cl
> ChangeLog
56 cat .clcopying
>> ChangeLog
58 tag
= $(PACKAGE
)_
`echo $(VERSION) | sed 's/\./_/g'`
59 htmldir
= ..
/www-
$(PACKAGE
)
61 release
: prepare upload web upload-web
64 ! git-tag
-l
$(tag
) | grep
$(PACKAGE
) > /dev
/null
66 $(MAKE
) ChangeLog distcheck
67 git commit
-m Generated. ChangeLog
68 git-tag
-u b565716f
! -m
$(VERSION
) $(tag
)
73 build-aux
/gnupload
--to alpha.gnu.org
:$(PACKAGE
) $(distdir
).
tar.bz2
74 scp
$(distdir
).
tar.bz2
$(distdir
).
tar.bz2.sig igloo.linux.gr
:~ftp
/pub
/gnutls
/devel
/
75 ssh igloo.linux.gr
'cd ~ftp/pub/gnutls/devel/ && sha1sum *.tar.bz2 > CHECKSUMS'
76 cp
$(distdir
).
tar.bz2
$(distdir
).
tar.bz2.sig ..
/releases
/$(PACKAGE
)/
79 cd doc
&& ..
/build-aux
/gendocs.sh
-o ..
/$(htmldir
)/manual
/ $(PACKAGE
) $(PACKAGE_NAME
)
80 cd doc
/doxygen
&& doxygen
&& cd ..
/..
&& cp
-v doc
/doxygen
/html
/* $(htmldir
)/doxygen
/ && cd doc
/doxygen
/latex
&& make refman.pdf
&& cd ..
/..
/..
/ && cp doc
/doxygen
/latex
/refman.pdf
$(htmldir
)/doxygen
/$(PACKAGE
).pdf
81 cp
-v doc
/reference
/html
/*.html doc
/reference
/html
/*.png doc
/reference
/html
/*.devhelp doc
/reference
/html
/*.css
$(htmldir
)/reference
/
84 cd
$(htmldir
) && cvs commit
-m
"Update." manual
/ reference
/ doxygen
/