• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1## Makefile for the gettext-runtime/intl-java subdirectory of GNU gettext
2## Copyright (C) 2001-2003, 2006-2007, 2013 Free Software Foundation, Inc.
3##
4## This program is free software: you can redistribute it and/or modify
5## it under the terms of the GNU General Public License as published by
6## the Free Software Foundation; either version 3 of the License, or
7## (at your option) any later version.
8##
9## This program is distributed in the hope that it will be useful,
10## but WITHOUT ANY WARRANTY; without even the implied warranty of
11## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12## GNU General Public License for more details.
13##
14## You should have received a copy of the GNU General Public License
15## along with this program.  If not, see <https://www.gnu.org/licenses/>.
16
17## Process this file with automake to produce Makefile.in.
18
19AUTOMAKE_OPTIONS = 1.2 gnits
20EXTRA_DIST =
21CLEANFILES =
22
23RM = rm -f
24
25jardir = $(datadir)/gettext
26
27JAR = @JAR@
28JAVACOMP = $(SHELL) ../javacomp.sh
29JAVADOC2 = test ! -d /usr/lib/jdk1.3.1 || env PATH=/usr/lib/jdk1.3.1/bin:$$PATH javadoc
30
31
32all-local: all-classes all-javadoc2
33install-data-local: install-classes install-javadoc2
34installdirs-local: installdirs-classes installdirs-javadoc2
35uninstall-local: uninstall-classes uninstall-javadoc2
36
37
38# Special rules for Java compilation.
39
40all-classes: all-classes-@BUILDJAVA@
41all-classes-no:
42all-classes-yes: libintl.jar
43
44gnu/gettext/GettextResource.class: $(srcdir)/gnu/gettext/GettextResource.java
45	$(JAVACOMP) -d . $(srcdir)/gnu/gettext/GettextResource.java
46
47libintl.jar: gnu/gettext/GettextResource.class
48	$(JAR) cf $@ gnu/gettext/GettextResource*.class
49
50EXTRA_DIST += gnu/gettext/GettextResource.java
51
52CLEANFILES += libintl.jar gnu/gettext/*.class
53
54install-classes: install-classes-@BUILDJAVA@
55install-classes-no:
56	$(MKDIR_P) $(DESTDIR)$(jardir)
57install-classes-yes: all-classes-yes
58	$(MKDIR_P) $(DESTDIR)$(jardir)
59	$(INSTALL_DATA) libintl.jar $(DESTDIR)$(jardir)/libintl.jar
60
61installdirs-classes:
62	$(MKDIR_P) $(DESTDIR)$(jardir)
63
64uninstall-classes:
65	$(RM) $(DESTDIR)$(jardir)/libintl.jar
66
67
68# Special rules for Javadoc (JDK 1.2) documentation.
69
70all-javadoc2: $(srcdir)/javadoc2/index.html
71
72$(srcdir)/javadoc2/index.html: $(srcdir)/gnu/gettext/GettextResource.java
73	cd $(srcdir) && $(JAVADOC2) -d javadoc2 gnu.gettext gnu/gettext/*.java
74
75JAVADOC2_FILES = \
76  javadoc2/index.html \
77  javadoc2/allclasses-frame.html \
78  javadoc2/overview-tree.html \
79  javadoc2/deprecated-list.html \
80  javadoc2/serialized-form.html \
81  javadoc2/index-all.html \
82  javadoc2/help-doc.html \
83  javadoc2/packages.html \
84  javadoc2/package-list \
85  javadoc2/stylesheet.css \
86  javadoc2/gnu/gettext/package-summary.html \
87  javadoc2/gnu/gettext/package-tree.html \
88  javadoc2/gnu/gettext/package-frame.html \
89  javadoc2/gnu/gettext/GettextResource.html
90
91EXTRA_DIST += $(JAVADOC2_FILES)
92
93install-javadoc2: all-javadoc2
94	$(MKDIR_P) $(DESTDIR)$(htmldir)/javadoc2
95	$(MKDIR_P) $(DESTDIR)$(htmldir)/javadoc2/gnu/gettext
96	@for f in $(JAVADOC2_FILES); do \
97	  echo "$(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(htmldir)/$$f"; \
98	  $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(htmldir)/$$f; \
99	done
100
101installdirs-javadoc2:
102	$(MKDIR_P) $(DESTDIR)$(htmldir)/javadoc2
103	$(MKDIR_P) $(DESTDIR)$(htmldir)/javadoc2/gnu/gettext
104
105uninstall-javadoc2:
106	@for f in $(JAVADOC2_FILES); do \
107	  echo "$(RM) $(DESTDIR)$(htmldir)/$$f"; \
108	  $(RM) $(DESTDIR)$(htmldir)/$$f; \
109	done
110