Call setlocale to make iconv work, reported by
[libidn.git] / Makefile.am
blob860c50fb8f6da4406427d000ee3edaa1576b0e52
1 ## Process this file with automake to produce Makefile.in
2 # Copyright (C) 2002, 2003, 2004 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 SUBDIRS = lib po src doc tests examples java
22 ACLOCAL_AMFLAGS = -I m4
24 EXTRA_DIST = FAQ libidn.pc.in \
25         libc/README libc/getaddrinfo-idn.txt libc/example.c \
26         contrib/README contrib/idn-python/README contrib/idn-python/Makefile \
27         contrib/idn-python/idn.c contrib/idn-python/test.py \
28         contrib/web/idn.php \
29         contrib/java/README contrib/java/autogen.sh \
30         contrib/java/configure.ac contrib/java/Makefile.am \
31         contrib/java/ExampleIDNA.java contrib/java/IDNA.java \
32         contrib/java/IDNA.c \
33         contrib/doxygen/Doxyfile.in contrib/doxygen/Doxyfile.orig \
34         contrib/doxygen/gdoc2doxygen
36 pkgconfigdir = $(libdir)/pkgconfig
37 pkgconfig_DATA = libidn.pc
39 # Maintainer targets
41 ChangeLog:
42         cvs2cl --FSF --fsf --usermap .cvsusers -I ChangeLog -I .cvs \
43                 -I autogen.sh -I contrib -I doc/specifications/ -I draft- && \
44         cat .cvscopying >> ChangeLog
46 indent:
47         (cd lib && make indent)
48         (cd src && make indent)
49         (cd tests && make indent)
51 tag = $(PACKAGE)-`echo $(VERSION) | sed 's/\./-/g'`
52 htmldir = ../www-$(PACKAGE)
54 release:
55         cvs upd -p -r HEAD NEWS > /dev/null
56         if cvs upd -p -r $(tag) NEWS > /dev/null; then false else true; fi
57         rm -f ChangeLog && cvs upd ChangeLog
58         cvs commit
59         rm -f ChangeLog
60         $(MAKE) ChangeLog distcheck
61         cvs commit -m "" ChangeLog
62         cvs rtag $(tag) $(PACKAGE)
63         gpg -b $(distdir).tar.gz
64         gpg --verify $(distdir).tar.gz.sig
65         echo "directory: $(PACKAGE)" > $(distdir).tar.gz.directive
66         gpg --clearsign $(distdir).tar.gz.directive
67         ncftpput ftp-upload.gnu.org /incoming/alpha \
68                 $(distdir).tar.gz{,.sig,.directive.asc}
69         cd doc && ./gendocs.sh --html "--css-include=texinfo.css" \
70                 -o ../$(htmldir)/manual/ $(PACKAGE) "GNU Libidn"
71         cp -v $(distdir).tar.gz{,.sig} $(htmldir)/releases/
72         cp -v doc/reference/*.{html,png} $(htmldir)/reference/
73         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
74         cp -v doc/java/*.html $(htmldir)/javadoc/
75         cd $(htmldir) && cvs add -kb releases/$(distdir).tar.gz{,.sig} && \
76                 cvs commit -m "Update." manual/ javadoc/ reference/ \
77                                         doxygen/ releases/