1 ## Makefile for the gettext-runtime/intl-java subdirectory of GNU gettext
2 ## Copyright (C) 2001-2003 Free Software Foundation, Inc.
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 2, or (at your option)
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.
14 ## You should have received a copy of the GNU General Public License
15 ## along with this program; if not, write to the Free Software
16 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 ## Process this file with automake to produce Makefile.in.
20 AUTOMAKE_OPTIONS = 1.2 gnits
26 jardir = $(datadir)/gettext
31 JAVACOMP = $(SHELL) ../lib/javacomp.sh
32 JAVADOC1 = test ! -d /usr/lib/jdk1.1.8 || env PATH=/usr/lib/jdk1.1.8/bin:$$PATH javadoc
33 JAVADOC2 = test ! -d /usr/lib/jdk1.3.1 || env PATH=/usr/lib/jdk1.3.1/bin:$$PATH javadoc
36 all-local: all-classes all-javadoc1 all-javadoc2
37 install-data-local: install-classes install-javadoc1 install-javadoc2
38 installdirs-local: installdirs-classes installdirs-javadoc1 installdirs-javadoc2
39 uninstall-local: uninstall-classes uninstall-javadoc1 uninstall-javadoc2
42 # Special rules for Java compilation.
44 all-classes: all-classes-@BUILDJAVA@
46 all-classes-yes: libintl.jar
48 gnu/gettext/GettextResource.class: $(srcdir)/gnu/gettext/GettextResource.java
49 $(JAVACOMP) -d . $(srcdir)/gnu/gettext/GettextResource.java
51 libintl.jar: gnu/gettext/GettextResource.class
52 $(JAR) cf $@ gnu/gettext/GettextResource*.class
54 EXTRA_DIST += gnu/gettext/GettextResource.java
56 CLEANFILES += libintl.jar gnu/gettext/*.class
58 install-classes: install-classes-@BUILDJAVA@
60 $(mkinstalldirs) $(DESTDIR)$(jardir)
61 install-classes-yes: all-classes-yes
62 $(mkinstalldirs) $(DESTDIR)$(jardir)
63 $(INSTALL_DATA) libintl.jar $(DESTDIR)$(jardir)/libintl.jar
66 $(mkinstalldirs) $(DESTDIR)$(jardir)
69 $(RM) $(DESTDIR)$(jardir)/libintl.jar
72 # Special rules for Javadoc (JDK 1.1) documentation.
74 all-javadoc1: $(srcdir)/javadoc1/tree.html
76 $(srcdir)/javadoc1/tree.html: $(srcdir)/gnu/gettext/GettextResource.java
77 cd $(srcdir) && $(JAVADOC1) -d javadoc1 gnu/gettext/*.java
80 javadoc1/packages.html javadoc1/tree.html javadoc1/AllNames.html \
81 javadoc1/gnu.gettext.GettextResource.html \
82 javadoc1/images/blue-ball-small.gif javadoc1/images/blue-ball.gif \
83 javadoc1/images/class-index.gif \
84 javadoc1/images/constructor-index.gif \
85 javadoc1/images/constructors.gif \
86 javadoc1/images/cyan-ball-small.gif javadoc1/images/cyan-ball.gif \
87 javadoc1/images/error-index.gif \
88 javadoc1/images/exception-index.gif \
89 javadoc1/images/green-ball-small.gif javadoc1/images/green-ball.gif \
90 javadoc1/images/interface-index.gif \
91 javadoc1/images/magenta-ball-small.gif javadoc1/images/magenta-ball.gif \
92 javadoc1/images/method-index.gif \
93 javadoc1/images/methods.gif \
94 javadoc1/images/package-index.gif \
95 javadoc1/images/red-ball-small.gif javadoc1/images/red-ball.gif \
96 javadoc1/images/variable-index.gif \
97 javadoc1/images/variables.gif \
98 javadoc1/images/yellow-ball-small.gif javadoc1/images/yellow-ball.gif
100 EXTRA_DIST += $(JAVADOC1_FILES)
102 install-javadoc1: all-javadoc1
103 $(mkinstalldirs) $(DESTDIR)$(htmldir)/javadoc1
104 $(mkinstalldirs) $(DESTDIR)$(htmldir)/javadoc1/images
105 @for f in $(JAVADOC1_FILES); do \
106 echo "$(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(htmldir)/$$f"; \
107 $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(htmldir)/$$f; \
110 installdirs-javadoc1:
111 $(mkinstalldirs) $(DESTDIR)$(htmldir)/javadoc1
112 $(mkinstalldirs) $(DESTDIR)$(htmldir)/javadoc1/images
115 @for f in $(JAVADOC1_FILES); do \
116 echo "$(RM) $(DESTDIR)$(htmldir)/$$f"; \
117 $(RM) $(DESTDIR)$(htmldir)/$$f; \
121 # Special rules for Javadoc (JDK 1.2) documentation.
123 all-javadoc2: $(srcdir)/javadoc2/index.html
125 $(srcdir)/javadoc2/index.html: $(srcdir)/gnu/gettext/GettextResource.java
126 cd $(srcdir) && $(JAVADOC2) -d javadoc2 gnu/gettext/*.java
129 javadoc2/index.html \
130 javadoc2/allclasses-frame.html \
131 javadoc2/overview-tree.html \
132 javadoc2/deprecated-list.html \
133 javadoc2/serialized-form.html \
134 javadoc2/index-all.html \
135 javadoc2/help-doc.html \
136 javadoc2/packages.html \
137 javadoc2/package-list \
138 javadoc2/stylesheet.css \
139 javadoc2/gnu/gettext/package-summary.html \
140 javadoc2/gnu/gettext/package-tree.html \
141 javadoc2/gnu/gettext/package-frame.html \
142 javadoc2/gnu/gettext/GettextResource.html
144 EXTRA_DIST += $(JAVADOC2_FILES)
146 install-javadoc2: all-javadoc2
147 $(mkinstalldirs) $(DESTDIR)$(htmldir)/javadoc2
148 $(mkinstalldirs) $(DESTDIR)$(htmldir)/javadoc2/gnu/gettext
149 @for f in $(JAVADOC2_FILES); do \
150 echo "$(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(htmldir)/$$f"; \
151 $(INSTALL_DATA) $(srcdir)/$$f $(DESTDIR)$(htmldir)/$$f; \
154 installdirs-javadoc2:
155 $(mkinstalldirs) $(DESTDIR)$(htmldir)/javadoc2
156 $(mkinstalldirs) $(DESTDIR)$(htmldir)/javadoc2/gnu/gettext
159 @for f in $(JAVADOC2_FILES); do \
160 echo "$(RM) $(DESTDIR)$(htmldir)/$$f"; \
161 $(RM) $(DESTDIR)$(htmldir)/$$f; \