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
23 EXTRA_DIST = libidn.pc.in iconv.m4 strdup.c memset.c \
24 gen-stringprep-tables.pl rfc3454.txt \
25 gen-unicode-tables.pl UnicodeData-3.2.0.txt LineBreak-3.2.0.txt \
26 SpecialCasing-3.2.0.txt CaseFolding-3.2.0.txt \
27 CompositionExclusions-3.2.0.txt \
28 gdoc libidn.html libidn.ps libidn.pdf lgpl.texi \
29 libc/README libc/Makefile libc/Versions libc/configure \
30 libc/example.c libc/getaddrinfo.c libc/libc.patch libc/netdb.h \
32 contrib/idn-python/README contrib/idn-python/Makefile \
33 contrib/idn-python/idn.c contrib/idn-python/test.py
35 pkgconfigdir = $(libdir)/pkgconfig
36 pkgconfig_DATA = libidn.pc
38 lib_LTLIBRARIES = libidn.la
40 include_HEADERS = stringprep.h stringprep_generic.h stringprep_nameprep.h \
41 stringprep_kerberos5.h stringprep_xmpp.h stringprep_plain.h \
42 stringprep_iscsi.h idna.h punycode.h
44 libidn_la_SOURCES = gunicomp.h gunidecomp.h internal.h \
45 stringprep.c nfkc.c version.c toutf8.c \
46 stringprep_generic.c profiles.c \
47 punycode.h punycode.c \
49 libidn_la_LIBADD = @LTLIBOBJS@ @LTLIBICONV@
50 libidn_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
51 info_TEXINFOS = libidn.texi
52 pdf_TEXINFOS = libidn.texi
53 ps_TEXINFOS = libidn.texi
55 libidn.html: libidn.texi
56 $(MAKEINFO) --html --no-split --number-sections $<
58 libidn_TEXINFOS = fdl.texi \
59 example.c.texi example2.c.texi example3.c.texi example4.c.texi \
60 libidn-api-version.texi libidn-api-stringprep.texi \
61 libidn-api-punycode.texi libidn-api-idna.texi
64 sed -e 's/{/@{/g' -e 's/}/@}/g' < $< > $@
66 libidn-api-version.texi: version.c
67 $(PERL) $(srcdir)/gdoc -texinfo $^ > $@
69 libidn-api-stringprep.texi: stringprep.c nfkc.c toutf8.c reference/dummy.c
70 $(PERL) $(srcdir)/gdoc -texinfo $^ > $@
72 libidn-api-punycode.texi: punycode.c
73 $(PERL) $(srcdir)/gdoc -texinfo $^ > $@
75 libidn-api-idna.texi: idna.c
76 $(PERL) $(srcdir)/gdoc -texinfo $^ > $@
78 nfkc.c: gunicomp.h gunidecomp.h
80 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
81 $(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
83 stringprep_generic.c: rfc3454.txt gen-stringprep-tables.pl
84 $(PERL) $(srcdir)/gen-stringprep-tables.pl rfc3454.txt
86 tests = tst_stringprep tst_nfkc tst_punycode tst_idna
88 check_PROGRAMS = $(tests)
92 INCLUDES = -I$(top_srcdir)
95 noinst_PROGRAMS = $(tests) example example2 example3 example4
97 ACLOCAL_AMFLAGS = -I .
101 test ! -f .cvsusers || \
102 cvs2cl --fsf --usermap .cvsusers --no-times --no-common-dir --prune \
103 -I "ChangeLog|.cvsignore|.cvsusers|autogen.sh"
108 htmldir = ../www-$(PACKAGE)
109 tag = $(PACKAGE)-`echo $(VERSION) | sed 's/\./-/g'`
112 cvs upd -p -r HEAD NEWS > /dev/null
113 if cvs upd -p -r $(tag) NEWS > /dev/null; then false else true; fi
114 rm -f ChangeLog && cvs upd ChangeLog
117 cvs commit -m "" ChangeLog
118 rm -f $(distdir).tar.gz.asc
119 gpg -a --sign --detach $(distdir).tar.gz
120 gpg --verify $(distdir).tar.gz.asc
121 scp $(distdir).tar.gz* gnudist.gnu.org:~alpha/gnu/$(PACKAGE)/
122 test -d $(htmldir) && cp -v $(PACKAGE).{ps,pdf,html} $(htmldir)/
123 test -d $(htmldir)/reference && cp -v reference/*.html $(htmldir)/reference/
124 test -d $(htmldir) && cd $(htmldir) && cvs commit -m "Update." $(PACKAGE).{ps,pdf,html} reference/*.html
125 cvs rtag $(tag) $(PACKAGE)