Fixes.
[libidn.git] / Makefile.am
blobd2bfbd2be74a102c7ae5e28aa229c7cdcf8e4c5e
1 ## Process this file with automake to produce Makefile.in
2 # Copyright (C) 2002, 2003 Simon Josefsson.
4 # This file is part of GNU Libidn.
6 # GNU Libidn is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU Lesser General Public License as
8 # published by the Free Software Foundation; either version 2.1 of
9 # the License, or (at your option) any later version.
11 # GNU Libidn 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 Lesser General Public License for more details.
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with GNU Libidn; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
20 DIST_SUBDIRS = doc m4 reference
21 SUBDIRS = . m4 @GTKDOC@ gl lib src doc tests examples
23 ACLOCAL_AMFLAGS = -I m4 -I gl/m4
25 EXTRA_DIST = FAQ libidn.pc.in \
26         libc/README libc/Makefile libc/Versions libc/configure \
27         libc/example.c libc/getaddrinfo.c libc/libc.patch libc/netdb.h \
28         contrib/README contrib/idn-python/README contrib/idn-python/Makefile \
29         contrib/idn-python/idn.c contrib/idn-python/test.py \
30         contrib/web/idn.php \
31         contrib/java/README contrib/java/autogen.sh \
32         contrib/java/configure.ac contrib/java/Makefile.am \
33         contrib/java/ExampleIDNA.java contrib/java/IDNA.java \
34         contrib/java/IDNA.c \
35         contrib/doxygen/Doxyfile.in contrib/doxygen/Doxyfile.orig \
36         contrib/doxygen/gdoc2doxygen
38 pkgconfigdir = $(libdir)/pkgconfig
39 pkgconfig_DATA = libidn.pc
41 # Maintainer targets
43 ChangeLog:
44         test ! -f .cvsusers || \
45         (cvs2cl --FSF --usermap .cvsusers \
46         -I "ChangeLog|.cvs|autogen.sh|contrib|draft.*xml" && \
47         cat .cvscopying >> ChangeLog)
49 indent:
50         indent $(SOURCES)
52 htmldir = ../www-$(PACKAGE)
53 tag = $(PACKAGE)-`echo $(VERSION) | sed 's/\./-/g'`
55 release:
56         cvs upd -p -r HEAD NEWS > /dev/null
57         if cvs upd -p -r $(tag) NEWS > /dev/null; then false else true; fi
58         rm -f ChangeLog && cvs upd ChangeLog
59         cvs commit
60         rm -f ChangeLog
61         $(MAKE) ChangeLog distcheck
62         cvs commit -m "" ChangeLog
63         rm -f $(distdir).tar.gz.asc
64         gpg -a --sign --detach $(distdir).tar.gz
65         gpg --verify $(distdir).tar.gz.asc
66         -cd contrib/doxygen && doxygen && cp -v html/* $(htmldir)/doxygen/
67         -cp -v doc/$(PACKAGE).{ps,pdf,html} $(htmldir)/ && \
68                 cp -v reference/*.html $(htmldir)/reference/ && \
69                 cd $(htmldir) && cvs commit -m "Update." \
70                         $(PACKAGE).{ps,pdf,html} reference/*.html doxygen/*
71         cvs rtag $(tag) $(PACKAGE)