1 # Copyright (C) 2006, 2007, 2008, 2009 Free Software Foundation
2 # Author: Simon Josefsson
4 # This file is part of LIBTASN1.
6 # This program is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 CFGFLAGS ?= --enable-gtk-doc WARN_CFLAGS=-Werror
21 ifeq ($(.DEFAULT_GOAL),abort-due-to-no-makefile)
22 .DEFAULT_GOAL := bootstrap
26 test -f ./configure || autoreconf --install
29 ./configure $(CFGFLAGS)
32 rm -fv `find $(htmldir)/coverage -type f | grep -v CVS`
33 cp -rv $(COVERAGE_OUT)/* $(htmldir)/coverage/
37 cvs commit -m "Update." coverage
39 W32ROOT ?= $(HOME)/gnutls4win/inst
42 ./configure --enable-gtk-doc --host=i586-mingw32msvc --build=`./config.guess` --prefix=$(W32ROOT)
46 cat .clcopying >> ChangeLog
48 htmldir = ../www-$(PACKAGE)
49 tag = $(PACKAGE)_`echo $(VERSION) | sed 's/\./_/g'`
51 release: prepare upload web upload-web
54 ! git-tag -l $(tag) | grep $(PACKAGE) > /dev/null
56 $(MAKE) ChangeLog distcheck
57 git commit -m Generated. ChangeLog
58 git-tag -u b565716f! -m $(VERSION) $(tag)
63 gnupload --to ftp.gnu.org:gnutls $(distdir).tar.gz
64 scp $(distdir).tar.gz $(distdir).tar.gz.sig igloo.linux.gr:~ftp/pub/gnutls/libtasn1/
65 ssh igloo.linux.gr 'cd ~ftp/pub/gnutls/libtasn1/ && sha1sum *.tar.gz > CHECKSUMS'
66 cp $(distdir).tar.gz $(distdir).tar.gz.sig ../releases/gnutls/$(PACKAGE)/
69 cd doc && ../build-aux/gendocs.sh --html "--css-include=texinfo.css" \
70 -o ../$(htmldir)/manual/ $(PACKAGE) "$(PACKAGE_NAME)"
71 cp -v doc/reference/html/*.html doc/reference/html/*.png doc/reference/html/*.devhelp doc/reference/html/*.css $(htmldir)/reference/
74 cd $(htmldir) && cvs commit -m "Update." manual/ reference/