Generated.
[libidn.git] / Makefile.am
blobce370c9550bb285a8adb8d282169afeb8f3229f3
1 ## Process this file with automake to produce Makefile.in
2 # Copyright (C) 2002, 2003, 2004, 2005, 2006 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., 51 Franklin Street, Fifth Floor, Boston, MA
19 # 02110-1301, USA.
21 SUBDIRS = gl lib/gl lib po src doc tests examples java csharp
23 ACLOCAL_AMFLAGS = -I m4 -I gl/m4 -I lib/gl/m4
24 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
26 EXTRA_DIST = FAQ libc/README libc/getaddrinfo-idn.txt libc/example.c \
27         contrib/README contrib/idn-python/README contrib/idn-python/Makefile \
28         contrib/idn-python/idn.c contrib/idn-python/test.py \
29         contrib/web/idn.php \
30         contrib/java/README contrib/java/autogen.sh \
31         contrib/java/configure.ac contrib/java/Makefile.am \
32         contrib/java/ExampleIDNA.java contrib/java/IDNA.java \
33         contrib/java/IDNA.c \
34         contrib/doxygen/Doxyfile.in contrib/doxygen/Doxyfile.orig \
35         contrib/doxygen/gdoc2doxygen
37 pkgconfigdir = $(libdir)/pkgconfig
38 pkgconfig_DATA = libidn.pc
40 # Maintainer targets
42 update-po: refresh-po
43         cvs add `ls po/*.po | grep -v quot.po` || true && \
44         echo sv >> po/LINGUAS && \
45         cvs commit -m "Sync with TP." po/LINGUAS `ls po/*.po | grep -v quot.po`
47 ChangeLog:
48         cvs2cl --FSF --fsf --usermap .cvsusers -I ChangeLog -I .cvs \
49                 -I autogen.sh -I contrib -I doc/specifications/ -I draft- && \
50         cat .cvscopying >> ChangeLog
52 tag = $(PACKAGE)-`echo $(VERSION) | sed 's/\./-/g'`
53 htmldir = ../www-$(PACKAGE)
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         cvs rtag $(tag) $(PACKAGE)
64         ./gnupload --to alpha.gnu.org:libidn $(distdir).tar.gz
65         cd doc && env MAKEINFO="makeinfo -I ../examples" \
66                       TEXI2DVI="texi2dvi -I ../examples" \
67                 ../gendocs.sh --html "--css-include=texinfo.css" \
68                 -o ../$(htmldir)/manual/ $(PACKAGE) "GNU Libidn"
69         cp -v $(distdir).tar.gz{,.sig} $(htmldir)/releases/
70         cp -v doc/reference/html/*.{html,png,devhelp,css} $(htmldir)/reference/
71         cd contrib/doxygen && doxygen && cd ../.. && cp -v contrib/doxygen/html/* $(htmldir)/doxygen/ && cd contrib/doxygen/latex && make refman.pdf && cd ../../../ && cp contrib/doxygen/latex/refman.pdf $(htmldir)/doxygen/$(PACKAGE).pdf
72         cp -v doc/java/*.html $(htmldir)/javadoc/
73         cd $(htmldir) && cvs add -kb releases/$(distdir).tar.gz{,.sig} && \
74                 cvs commit -m "Update." manual/ javadoc/ reference/ \
75                                         doxygen/ releases/