1 ## Process this file with automake to produce Makefile.in
2 # Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 Simon Josefsson.
4 # This file is part of GNU Libidn.
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 SUBDIRS = gl lib/gl lib po src doc tests examples java csharp
21 ACLOCAL_AMFLAGS = -I m4 -I gl/m4 -I lib/gl/m4
22 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
24 EXTRA_DIST = FAQ libc/README libc/getaddrinfo-idn.txt libc/example.c \
25 contrib/README contrib/idn-python/README contrib/idn-python/Makefile \
26 contrib/idn-python/idn.c contrib/idn-python/test.py \
28 contrib/java/README contrib/java/autogen.sh \
29 contrib/java/configure.ac contrib/java/Makefile.am \
30 contrib/java/ExampleIDNA.java contrib/java/IDNA.java \
32 contrib/doxygen/Doxyfile.in contrib/doxygen/Doxyfile.orig \
33 contrib/doxygen/gdoc2doxygen
35 pkgconfigdir = $(libdir)/pkgconfig
36 pkgconfig_DATA = libidn.pc
41 git-update-index --add `ls po/*.po | grep -v quot.po` || true && \
42 echo sv >> po/LINGUAS && \
43 git-commit -m "Sync with TP." po/LINGUAS `ls po/*.po | grep -v quot.po`
46 git log --pretty --numstat --summary | git2cl > ChangeLog
47 cat .cvscopying >> ChangeLog
49 tag = $(PACKAGE)-`echo $(VERSION) | sed 's/\./-/g'`
50 htmldir = ../www-$(PACKAGE)
53 ! git-tag -l $(tag) > /dev/null
55 $(MAKE) ChangeLog distcheck
56 git commit -m Generated. ChangeLog
57 git-tag -u b565716f! -m $(VERSION) $(tag)
58 build-aux/gnupload --to alpha.gnu.org:libidn $(distdir).tar.gz
59 cd doc && env MAKEINFO="makeinfo -I ../examples" \
60 TEXI2DVI="texi2dvi -I ../examples" \
61 ../build-aux/gendocs.sh --html "--css-include=texinfo.css" \
62 -o ../$(htmldir)/manual/ $(PACKAGE) "GNU Libidn"
63 cp -v $(distdir).tar.gz{,.sig} $(htmldir)/releases/
64 cp -v doc/reference/html/*.{html,png,devhelp,css} $(htmldir)/reference/
65 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
66 cp -v doc/java/*.html $(htmldir)/javadoc/
67 cd $(htmldir) && cvs add -kb releases/$(distdir).tar.gz{,.sig} && \
68 cvs commit -m "Update." manual/ javadoc/ reference/ \