summaryrefslogtreecommitdiff
path: root/java/Makefile.am
blob: ba455fd16b834f33cd730f8eeede57d27e313bb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
## Process this file with automake to produce Makefile.in
# Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Simon Josefsson
#
# This file is part of GNU Libidn.
#
# GNU Libidn is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2.1 of
# the License, or (at your option) any later version.
#
# GNU Libidn is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with GNU Libidn; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA

SUBDIRS = gnu . misc

INSTALL_TARGETS =

if JAVA
libidn_jardir = $(datadir)/java
dist_libidn_jar_DATA = libidn-$(VERSION).jar

libidn-$(VERSION).jar:
	$(JAR) cf $@ gnu/inet/encoding/CombiningClass.class	\
		gnu/inet/encoding/Composition.class		\
		gnu/inet/encoding/DecompositionKeys.class	\
		gnu/inet/encoding/DecompositionMappings.class	\
		gnu/inet/encoding/IDNA.class			\
		gnu/inet/encoding/IDNAException.class		\
		gnu/inet/encoding/NFKC.class			\
		gnu/inet/encoding/Punycode.class		\
		gnu/inet/encoding/PunycodeException.class	\
		gnu/inet/encoding/RFC3454.class			\
		gnu/inet/encoding/Stringprep.class		\
		gnu/inet/encoding/StringprepException.class

INSTALL_TARGETS += install-jar
install-jar:
	install -d -m 755 $(DESTDIR)$(libidn_jardir)
	ln -sf libidn-$(VERSION).jar $(DESTDIR)$(libidn_jardir)/libidn.jar

clean-local:
	rm -f $(libidn_jar_DATA)

# Invoked by ../doc/java/Makefile.
.PHONY: javadoc
javadoc:
	cd $(srcdir) && $(GJDOC) -d $(top_builddir)/doc/java gnu/inet/encoding/*.java
endif

install-data-local: $(INSTALL_TARGETS)