Don't use gdoc.
[libidn.git] / Makefile.am
blobca777af6af5daeae74433af2ce054d1bb847ccac
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 = reference
21 SUBDIRS = @GTKDOC@
23 ACLOCAL_AMFLAGS = -I m4
25 EXTRA_DIST = FAQ libidn.pc.in \
26         m4/iconv.m4 m4/ax_create_stdint_h.m4 m4/ac_compile_check_sizeof.m4 \
27         gen-stringprep-tables.pl rfc3454.txt \
28         gen-unicode-tables.pl UnicodeData-3.2.0.txt LineBreak-3.2.0.txt \
29         SpecialCasing-3.2.0.txt CaseFolding-3.2.0.txt \
30         CompositionExclusions-3.2.0.txt \
31         libidn.html libidn.ps libidn.pdf lgpl.texi \
32         libc/README libc/Makefile libc/Versions libc/configure \
33         libc/example.c libc/getaddrinfo.c libc/libc.patch libc/netdb.h \
34         contrib/README contrib/idn-python/README contrib/idn-python/Makefile \
35         contrib/idn-python/idn.c contrib/idn-python/test.py \
36         contrib/web/idn.php \
37         contrib/java/README contrib/java/autogen.sh \
38         contrib/java/configure.ac contrib/java/Makefile.am \
39         contrib/java/ExampleIDNA.java contrib/java/IDNA.java \
40         contrib/java/IDNA.c \
41         contrib/doxygen/Doxyfile.in contrib/doxygen/Doxyfile.orig \
42         contrib/doxygen/gdoc2doxygen \
43         getopt.h getopt.c getopt1.c strdup.c memset.c
45 clean-local:
46         rm -f idn_cmd.c idn_cmd.h
48 # Library
50 pkgconfigdir = $(libdir)/pkgconfig
51 pkgconfig_DATA = libidn.pc
53 lib_LTLIBRARIES = libidn.la
55 include_HEADERS = stringprep.h stringprep_generic.h stringprep_nameprep.h \
56         stringprep_kerberos5.h stringprep_xmpp.h stringprep_plain.h \
57         stringprep_iscsi.h idna.h punycode.h
59 libidn_la_SOURCES = gunicomp.h gunidecomp.h internal.h \
60         stringprep.c nfkc.c version.c toutf8.c \
61         stringprep_generic.c profiles.c \
62         punycode.h punycode.c \
63         idna.h idna.c
64 libidn_la_LIBADD = @LTLIBOBJS@ @LTLIBICONV@
65 libidn_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
67 nfkc.c: gunicomp.h gunidecomp.h
69 gunicomp.h gunidecomp.h: gen-unicode-tables.pl UnicodeData-3.2.0.txt LineBreak-3.2.0.txt SpecialCasing-3.2.0.txt CaseFolding-3.2.0.txt CompositionExclusions-3.2.0.txt
70         $(PERL) $(srcdir)/gen-unicode-tables.pl -decomp 3.2 UnicodeData-3.2.0.txt LineBreak-3.2.0.txt SpecialCasing-3.2.0.txt CaseFolding-3.2.0.txt CompositionExclusions-3.2.0.txt
72 stringprep_generic.c: rfc3454.txt gen-stringprep-tables.pl
73         $(PERL) $(srcdir)/gen-stringprep-tables.pl rfc3454.txt
75 # Applications
77 bin_PROGRAMS = idn
79 idn_SOURCES = idn.c idn_cmd.c idn_cmd.h
80 idn_LDADD = @LIBOBJS@ libidn.la
82 idn.c: idn_cmd.c idn_cmd.h
84 idn_cmd.c idn_cmd.h: idn.ggo
85         -gengetopt --input $^ --file-name idn_cmd
87 dist_man_MANS = idn.1
89 idn.1: idn.c
90         $(HELP2MAN) --name="Internationalized Domain Names command line tool" \
91                 --output=$@ $(top_builddir)/idn
93 # Test suite
95 tests = tst_stringprep tst_punycode tst_idna tst_nfkc \
96         tst_ostringprep tst_opunycode tst_oidna
98 check_PROGRAMS = $(tests)
100 TESTS = $(tests)
102 INCLUDES = -I$(top_srcdir)
103 LDADD = libidn.la
105 noinst_PROGRAMS = $(tests) example example2 example3 example4
107 # Lisp interface
109 dist_lisp_LISP = punycode.el idna.el
110 ELCFILES=
111 elc-stamp:
113 # Documentation
115 info_TEXINFOS = libidn.texi
116 pdf_TEXINFOS = libidn.texi
117 ps_TEXINFOS = libidn.texi
119 libidn.html: libidn.texi
120         $(MAKEINFO) --html --no-split --number-sections $^
122 libidn_TEXINFOS = fdl.texi \
123         example.c.texi example2.c.texi example3.c.texi example4.c.texi
125 %.c.texi: %.c
126         sed -e 's/{/@{/g' -e 's/}/@}/g' < $< > $@
128 # Maintainer targets
130 ChangeLog:
131         test ! -f .cvsusers || \
132         cvs2cl --FSF --usermap .cvsusers \
133         -I "ChangeLog|.cvsignore|.cvsusers|autogen.sh|contrib|draft.*xml"
135 indent:
136         indent $(SOURCES)
138 htmldir = ../www-$(PACKAGE)
139 tag = $(PACKAGE)-`echo $(VERSION) | sed 's/\./-/g'`
141 release:
142         cvs upd -p -r HEAD NEWS > /dev/null
143         if cvs upd -p -r $(tag) NEWS > /dev/null; then false else true; fi
144         rm -f ChangeLog && cvs upd ChangeLog
145         cvs commit
146         rm -f ChangeLog
147         $(MAKE) ChangeLog distcheck
148         cvs commit -m "" ChangeLog
149         rm -f $(distdir).tar.gz.asc
150         gpg -a --sign --detach $(distdir).tar.gz
151         gpg --verify $(distdir).tar.gz.asc
152         scp $(distdir).tar.gz* gnudist.gnu.org:~alpha/gnu/$(PACKAGE)/
153         test -d $(htmldir) && cp -v $(PACKAGE).{ps,pdf,html} $(htmldir)/
154         test -d $(htmldir)/reference && \
155                 cp -v reference/*.html $(htmldir)/reference/
156         test -d $(htmldir)/doxygen && test -d contrib/doxygen/html && \
157                 cp -v contrib/doxygen/html/* $(htmldir)/doxygen/
158         test -d $(htmldir) && cd $(htmldir) && cvs commit -m "Update." \
159                 $(PACKAGE).{ps,pdf,html} reference/*.html
160         cvs rtag $(tag) $(PACKAGE)