Fix release.
[platform/upstream/libtasn1.git] / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 # Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation
3 #
4 # This file is part of LIBTASN1.
5 #
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.
10 #
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.
15 #
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.
19
20 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
21
22 EXTRA_DIST = windows/asn1-parser/asn1-parser.vcproj             \
23         windows/asn1-parser/config.h windows/libtasn1.ncb       \
24         windows/libtasn1.sln windows/libtasn1.suo               \
25         windows/gnulib/getopt.h windows/gnulib/gnulib.vcproj    \
26         windows/libtasn1/libtasn1.vcproj                        \
27         windows/test-parser/test-parser.vcproj                  \
28         windows/test-tree/test-tree.vcproj
29
30 SUBDIRS = gl lib src tests doc
31
32 ACLOCAL_AMFLAGS = -I m4 -I gl/m4
33
34 ChangeLog:
35         git log --pretty --numstat --summary | git2cl > ChangeLog
36
37 htmldir = ../www-gnutls
38 tag = $(PACKAGE)_`echo $(VERSION) | sed 's/\./_/g'`
39
40 release:
41         ! git-tag -l $(tag) > /dev/null
42         rm -f ChangeLog
43         make ChangeLog
44         git commit -m Generated. ChangeLog
45         git-tag -u b565716f! -m $(VERSION) $(tag)
46         make dist
47         gpg -b $(distdir).tar.gz
48         gpg --verify $(distdir).tar.gz.sig
49         cd doc && ../build-aux/gendocs.sh -o ../$(htmldir)/manual/libtasn1/ $(PACKAGE) "Libtasn1"
50         cp -v doc/reference/html/*.{html,png,devhelp,css} $(htmldir)/manual/libtasn1/reference/
51         cp -v $(distdir).tar.gz{,.sig} $(htmldir)/releases/libtasn1/
52         scp $(distdir).tar.gz{,.sig} igloo.linux.gr:~ftp/pub/gnutls/libtasn1/
53         ssh igloo.linux.gr 'cd ~ftp/pub/gnutls/libtasn1/ && sha1sum *.tar.gz > CHECKSUMS'
54         cd $(htmldir) && \
55                 cvs add -kb releases/libtasn1/$(distdir).tar.gz{,.sig} && \
56                 cvs commit -m "Update." manual/libtasn1/ releases/libtasn1/