1 # Top level -*- makefile -*- fragment for the GNU compiler for the Java(TM)
3 # Copyright (C) 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
5 #This file is part of GCC.
7 #GCC is free software; you can redistribute it and/or modify
8 #it under the terms of the GNU General Public License as published by
9 #the Free Software Foundation; either version 2, or (at your option)
12 #GCC is distributed in the hope that it will be useful,
13 #but WITHOUT ANY WARRANTY; without even the implied warranty of
14 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 #GNU General Public License for more details.
17 #You should have received a copy of the GNU General Public License
18 #along with GCC; see the file COPYING. If not, write to
19 #the Free Software Foundation, 59 Temple Place - Suite 330,
20 #Boston, MA 02111-1307, USA.
22 #Java and all Java-based marks are trademarks or registered trademarks
23 #of Sun Microsystems, Inc. in the United States and other countries.
24 #The Free Software Foundation is independent of Sun Microsystems, Inc.
26 # This file provides the language dependent support in the main Makefile.
27 # Each language makefile fragment must provide the following targets:
29 # foo.all.build, foo.all.cross, foo.start.encap, foo.rest.encap,
30 # foo.install-normal, foo.install-common, foo.install-man,
32 # foo.mostlyclean, foo.clean, foo.distclean,
33 # foo.maintainer-clean, foo.stage1, foo.stage2, foo.stage3, foo.stage4
35 # where `foo' is the name of the language.
37 # It should also provide rules for:
39 # - making any compiler driver (eg: g++)
40 # - the compiler proper (eg: jc1)
41 # - define the names for selecting the language in LANGUAGES.
43 # Actual names to use when installing a native compiler.
44 JAVA_INSTALL_NAME := $(shell echo gcj|sed '$(program_transform_name)')
45 JAVA_TARGET_INSTALL_NAME := $(target_noncanonical)-$(shell echo gcj|sed '$(program_transform_name)')
46 GCJH_TARGET_INSTALL_NAME := $(target_noncanonical)-$(shell echo gcjh|sed '$(program_transform_name)')
50 # Define the names for selecting java in LANGUAGES.
51 java: jc1$(exeext) $(GCJ)$(exeext) jvgenmain$(exeext) \
52 gcjh$(exeext) jv-scan$(exeext) jcf-dump$(exeext)
54 # Define the name of target independent tools to be installed in $(bindir)
55 # Names are subject to changes
56 JAVA_TARGET_INDEPENDENT_BIN_TOOLS = gcjh jv-scan jcf-dump
58 # Tell GNU make to ignore these if they exist.
61 jvspec.o: $(srcdir)/java/jvspec.c $(SYSTEM_H) coretypes.h $(TM_H) \
63 (SHLIB_LINK='$(SHLIB_LINK)' \
64 SHLIB_MULTILIB='$(SHLIB_MULTILIB)'; \
65 $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(DRIVER_DEFINES) \
66 $(INCLUDES) $(srcdir)/java/jvspec.c $(OUTPUT_OPTION))
68 # Create the compiler driver for $(GCJ).
69 $(GCJ)$(exeext): gcc.o jvspec.o version.o \
70 prefix.o intl.o $(LIBDEPS) $(EXTRA_GCC_OBJS)
71 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ gcc.o jvspec.o prefix.o intl.o \
72 version.o $(EXTRA_GCC_OBJS) $(LIBS)
74 # Create a version of the $(GCJ) driver which calls the cross-compiler.
75 $(GCJ)-cross$(exeext): $(GCJ)$(exeext)
76 -rm -f $(GCJ)-cross$(exeext)
77 cp $(GCJ)$(exeext) $(GCJ)-cross$(exeext)
79 java.srcextra: java/parse.c java/parse-scan.c
80 -cp -p $^ $(srcdir)/java
82 java/parse.c: java/parse.y
83 -$(BISON) -t --name-prefix=java_ $(BISONFLAGS) -o $@ $<
85 java/parse-scan.c: java/parse-scan.y
86 -$(BISON) -t $(BISONFLAGS) -o $@ $<
88 $(srcdir)/java/keyword.h: $(srcdir)/java/keyword.gperf
89 (cd $(srcdir)/java || exit 1; \
90 gperf -L ANSI-C -C -F ', 0' -p -t -j1 -i 1 -g -o -N java_keyword -k1,4,$$ \
91 keyword.gperf > k$$$$.h || { \
92 echo "Please update gperf from ftp://ftp.gnu.org/pub/gnu/gperf/" >&2; \
95 mv -f k$$$$.h keyword.h)
97 gt-java-class.h gt-java-constants.h gt-java-decl.h : s-gtype ; @true
98 gt-java-expr.h gt-java-jcf-parse.h gt-java-jcf-write.h : s-gtype ; @true
99 gt-java-lang.h gt-java-mangle.h gt-java-parse.h : s-gtype ; @true
100 gt-java-builtins.h gtype-java.h gt-java-resource.h : s-gtype ; @true
102 # Executables built by this Makefile:
103 JAVA_OBJS = java/parse.o java/class.o java/decl.o java/expr.o \
104 java/constants.o java/lang.o java/typeck.o java/except.o java/verify.o \
105 java/verify-glue.o java/verify-impl.o \
106 java/zextract.o java/jcf-io.o java/win32-host.o java/jcf-parse.o java/mangle.o \
107 java/mangle_name.o java/builtins.o java/resource.o \
108 java/jcf-write.o java/buffer.o java/check-init.o java/jcf-depend.o \
109 java/jcf-path.o java/boehm.o java/java-gimplify.o
111 GCJH_OBJS = java/gjavah.o java/jcf-io.o java/jcf-depend.o java/jcf-path.o \
112 java/win32-host.o java/zextract.o version.o errors.o ggc-none.o \
115 JVSCAN_OBJS = java/parse-scan.o java/jv-scan.o version.o intl.o
117 JCFDUMP_OBJS = java/jcf-dump.o java/jcf-io.o java/jcf-depend.o java/jcf-path.o \
118 java/win32-host.o java/zextract.o errors.o version.o ggc-none.o intl.o
120 JVGENMAIN_OBJS = java/jvgenmain.o java/mangle_name.o errors.o intl.o
122 # Use strict warnings for this front end.
123 java-warn = $(STRICT_WARN)
125 # String length warnings
126 jvspec.o-warn = -Wno-error
128 # Bison-1.75 output often yields (harmless) -Wtraditional warnings
129 java/parse-scan.o-warn = -Wno-error
130 java/parse.o-warn = -Wno-error
132 jc1$(exeext): $(JAVA_OBJS) $(BACKEND) $(LIBDEPS)
134 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ \
135 $(JAVA_OBJS) $(BACKEND) $(ZLIB) $(LIBICONV) $(LIBS)
137 gcjh$(exeext): $(GCJH_OBJS) $(LIBDEPS)
139 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(GCJH_OBJS) $(CPPLIBS) $(ZLIB) $(LIBS)
141 jv-scan$(exeext): $(JVSCAN_OBJS) $(LIBDEPS)
143 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(JVSCAN_OBJS) $(LIBICONV) $(LIBS)
145 jcf-dump$(exeext): $(JCFDUMP_OBJS) $(LIBDEPS)
147 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(JCFDUMP_OBJS) \
148 $(CPPLIBS) $(ZLIB) $(LDEXP_LIB) $(LIBS)
150 jvgenmain$(exeext): $(JVGENMAIN_OBJS) $(LIBDEPS)
152 $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(JVGENMAIN_OBJS) $(LIBS)
157 java.all.build: $(GCJ)$(exeext)
158 java.all.cross: $(GCJ)-cross$(exeext)
159 java.start.encap: $(GCJ)$(exeext)
164 cd $(srcdir)/java; etags -o TAGS.sub *.y *.c *.h --language=none \
165 --regex='/DEFTREECODE [(]\([A-Z_]+\)/\1/' java-tree.def; \
166 etags --include TAGS.sub --include ../TAGS.sub
169 java.info: doc/gcj.info
171 java.srcinfo: doc/gcj.info
172 -cp -p $^ $(srcdir)/doc
175 html:: $(htmldir)/java/index.html
176 JAVA_MANFILES = doc/gcj.1 doc/gcjh.1 doc/jv-scan.1 doc/jcf-dump.1 doc/gij.1 \
177 doc/jv-convert.1 doc/grmic.1 doc/grmiregistry.1 \
180 java.man: $(JAVA_MANFILES)
182 java.srcman: $(JAVA_MANFILES)
183 -cp -p $^ $(srcdir)/doc
188 # jc1, gcj, jvgenmain, and gcjh are installed elsewhere as part
191 # Nothing to do here.
194 # Install gcj as well as the target-independent tools.
195 # For a native build, we special-case gcjh and also install
196 # its explicitly-prefixed variant. This allows us to write
197 # portable makefiles for both cross builds (where gcjh *must*
198 # be explicitly prefixed) and native builds.
199 java.install-common: installdirs
200 -if [ -f $(GCJ)$(exeext) ]; then \
201 rm -f $(DESTDIR)$(bindir)/$(JAVA_INSTALL_NAME)$(exeext); \
202 $(INSTALL_PROGRAM) $(GCJ)$(exeext) $(DESTDIR)$(bindir)/$(JAVA_INSTALL_NAME)$(exeext); \
203 chmod a+x $(DESTDIR)$(bindir)/$(JAVA_INSTALL_NAME)$(exeext); \
204 if [ -f $(GCJ)-cross$(exeext) ]; then \
207 rm -f $(DESTDIR)$(bindir)/$(JAVA_TARGET_INSTALL_NAME)$(exeext); \
208 ( cd $(DESTDIR)$(bindir) && \
209 $(LN) $(JAVA_INSTALL_NAME)$(exeext) $(JAVA_TARGET_INSTALL_NAME)$(exeext) ); \
212 for tool in $(JAVA_TARGET_INDEPENDENT_BIN_TOOLS); do \
213 tool_transformed_name=`echo $$tool|sed '$(program_transform_name)'`; \
214 if [ -f $$tool$(exeext) ]; then \
215 rm -f $(DESTDIR)$(bindir)/$$tool_transformed_name$(exeext); \
216 $(INSTALL_PROGRAM) $$tool$(exeext) $(DESTDIR)$(bindir)/$$tool_transformed_name$(exeext); \
217 chmod a+x $(DESTDIR)$(bindir)/$$tool_transformed_name$(exeext); \
218 if [ -f $(GCJ)-cross$(exeext) ]; then \
220 elif [ $$tool = gcjh ]; then \
221 rm -f $(DESTDIR)$(bindir)/$(GCJH_TARGET_INSTALL_NAME)$(exeext); \
222 ( cd $(DESTDIR)$(bindir) && \
223 $(LN) $$tool_transformed_name$(exeext) $(GCJH_TARGET_INSTALL_NAME)$(exeext) ); \
231 -rm -rf $(DESTDIR)$(bindir)/$(JAVA_INSTALL_NAME)$(exeext)
232 -rm -rf $(DESTDIR)$(man1dir)/$(JAVA_INSTALL_NAME)$(man1ext)
233 -rm -rf $(DESTDIR)$(man1dir)/gcjh$(man1ext)
234 -rm -rf $(DESTDIR)$(man1dir)/jv-scan$(man1ext)
235 -rm -rf $(DESTDIR)$(man1dir)/jcf-dump$(man1ext)
236 -rm -rf $(DESTDIR)$(man1dir)/gij$(man1ext)
237 -rm -rf $(DESTDIR)$(man1dir)/jv-convert$(man1ext)
238 -rm -rf $(DESTDIR)$(man1dir)/gcj-dbtool$(man1ext)
240 install-info:: $(DESTDIR)$(infodir)/gcj.info
244 # A lot of the ancillary files are deleted by the main makefile.
245 # We just have to delete files specific to us.
248 -rm -f java/parse.c java/parse-scan.c
249 -rm -f java/*$(objext) $(DEMANGLER_PROG)
250 -rm -f java/*$(coverageexts)
251 -rm -f jc1$(exeext) $(GCJ)$(exeext) jvgenmain$(exeext) gcjh$(exeext) jv-scan$(exeext) jcf-dump$(exeext) s-java
254 -rm -f java/config.status java/Makefile
255 -rm -f java/parse.output java/y.tab.c
256 java.maintainer-clean:
257 -rm -f $(docobjdir)/gcj.1 $(docobjdir)/gcjh.1
258 -rm -f $(docobjdir)/jv-scan.1 $(docobjdir)/jcf-dump.1
259 -rm -f $(docobjdir)/gij.1
260 -rm -f $(docobjdir)/jv-convert.1
261 -rm -f $(docobjdir)/grmic.1
262 -rm -f $(docobjdir)/grmiregistry.1
263 -rm -f $(docobjdir)/gcj-dbtool.1
266 # The main makefile has already created stage?/java.
268 java.stage1: stage1-start
269 -mv java/*$(objext) stage1/java
270 java.stage2: stage2-start
271 -mv java/*$(objext) stage2/java
272 java.stage3: stage3-start
273 -mv java/*$(objext) stage3/java
274 java.stage4: stage4-start
275 -mv java/*$(objext) stage4/java
276 java.stageprofile: stageprofile-start
277 -mv java/*$(objext) stageprofile/java
278 java.stagefeedback: stageprofile-start
279 -mv java/*$(objext) stagefeedback/java
282 # .o:.h dependencies.
283 JAVA_TREE_H = $(TREE_H) $(HASHTAB_H) java/java-tree.h java/java-tree.def
284 JAVA_LEX_C = java/lex.c java/keyword.h java/chartables.h
286 java/jcf-dump.o: $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(JAVA_TREE_H) \
287 java/jcf-dump.c java/jcf-reader.c java/jcf.h java/javaop.h java/javaop.def \
288 version.h $(GGC_H) intl.h
289 java/gjavah.o: $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(JAVA_TREE_H) \
290 java/gjavah.c java/jcf-reader.c java/jcf.h java/javaop.h version.h $(GGC_H) \
292 java/boehm.o: java/boehm.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
293 $(TREE_H) $(JAVA_TREE_H) java/parse.h toplev.h
294 java/buffer.o: java/buffer.c $(CONFIG_H) java/buffer.h $(SYSTEM_H) coretypes.h \
296 java/builtins.o: java/builtins.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
297 $(JAVA_TREE_H) $(GGC_H) flags.h langhooks.h gt-java-builtins.h
298 java/check-init.o: java/check-init.c $(CONFIG_H) $(JAVA_TREE_H) $(SYSTEM_H) \
299 coretypes.h $(TM_H) toplev.h
300 java/class.o: java/class.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
301 $(JAVA_TREE_H) $(RTL_H) java/jcf.h java/parse.h toplev.h output.h $(GGC_H) \
302 $(TARGET_H) function.h gt-java-class.h cgraph.h
303 java/constants.o: java/constants.c $(CONFIG_H) $(JAVA_TREE_H) java/jcf.h \
304 toplev.h $(SYSTEM_H) coretypes.h $(TM_H) $(GGC_H) gt-java-constants.h
305 java/decl.o: java/decl.c $(CONFIG_H) $(JAVA_TREE_H) $(RTL_H) java/jcf.h \
306 toplev.h flags.h $(SYSTEM_H) coretypes.h $(TM_H) function.h expr.h \
307 libfuncs.h except.h java/java-except.h $(GGC_H) real.h gt-java-decl.h \
309 java/except.o: java/except.c $(CONFIG_H) $(JAVA_TREE_H) java/jcf.h real.h \
310 $(RTL_H) java/javaop.h java/java-opcodes.h except.h java/java-except.h \
311 toplev.h $(SYSTEM_H) coretypes.h $(TM_H) function.h
312 java/expr.o: java/expr.c $(CONFIG_H) $(JAVA_TREE_H) java/jcf.h real.h \
313 $(RTL_H) $(EXPR_H) java/javaop.h java/java-opcodes.h except.h \
314 java/java-except.h java/java-except.h java/parse.h toplev.h \
315 $(SYSTEM_H) coretypes.h $(TM_H) $(GGC_H) gt-java-expr.h target.h
316 java/jcf-depend.o: java/jcf-depend.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
318 java/jcf-parse.o: java/jcf-parse.c $(CONFIG_H) $(JAVA_TREE_H) flags.h \
319 input.h java/java-except.h $(SYSTEM_H) coretypes.h $(TM_H) toplev.h \
320 java/parse.h $(GGC_H) debug.h real.h gt-java-jcf-parse.h $(TM_P_H)
321 java/jcf-write.o: java/jcf-write.c $(CONFIG_H) $(JAVA_TREE_H) java/jcf.h \
322 $(RTL_H) java/java-opcodes.h java/parse.h java/buffer.h $(SYSTEM_H) \
323 coretypes.h $(TM_H) toplev.h $(GGC_H) gt-java-jcf-write.h $(TM_P_H)
324 java/jv-scan.o: java/jv-scan.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
326 java/jvgenmain.o: java/jvgenmain.c $(CONFIG_H) $(JAVA_TREE_H) $(SYSTEM_H) \
327 coretypes.h $(TM_H) intl.h
328 java/lang.o: java/lang.c $(CONFIG_H) $(JAVA_TREE_H) java/jcf.h input.h \
329 toplev.h $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) $(EXPR_H) diagnostic.h \
330 langhooks.h $(LANGHOOKS_DEF_H) gt-java-lang.h opts.h options.h
331 java/mangle.o: java/mangle.c $(CONFIG_H) java/jcf.h $(JAVA_TREE_H) $(SYSTEM_H) \
332 coretypes.h $(TM_H) toplev.h $(GGC_H) gt-java-mangle.h
333 java/mangle_name.o: java/mangle_name.c $(CONFIG_H) java/jcf.h $(JAVA_TREE_H) \
334 $(SYSTEM_H) coretypes.h $(TM_H) toplev.h $(GGC_H)
335 java/resource.o: java/resource.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
336 $(JAVA_TREE_H) $(RTL_H) java/jcf.h java/parse.h toplev.h output.h $(GGC_H) \
337 $(TARGET_H) function.h gt-java-resource.h expr.h
338 java/typeck.o: java/typeck.c $(CONFIG_H) $(JAVA_TREE_H) java/jcf.h \
339 java/convert.h toplev.h $(SYSTEM_H) coretypes.h $(TM_H) $(GGC_H) real.h
340 java/win32-host.o: java/win32-host.c $(CONFIG_H) $(SYSTEM_H) coretypes.h java/jcf.h
341 java/verify.o: java/verify.c $(CONFIG_H) $(JAVA_TREE_H) java/jcf.h \
342 java/javaop.h java/java-opcodes.h java/java-except.h toplev.h $(SYSTEM_H) \
344 java/verify-glue.o: java/verify-glue.c $(CONFIG_H) $(SYSTEM_H) $(JAVA_TREE_H) \
345 coretypes.h $(TM_H) java/verify.h
346 java/verify-impl.o: java/verify-impl.c $(CONFIG_H) java/verify.h $(SYSTEM_H) \
347 coretypes.h java/jcf.h $(JAVA_TREE_H)
348 java/zextract.o: java/zextract.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
350 java/java-gimplify.o: java/java-gimplify.c $(CONFIG_H) $(SYSTEM_H) \
351 coretypes.h $(TM_H) $(JAVA_TREE_H) tree-gimple.h toplev.h
353 java/parse-scan.o: java/parse-scan.c $(CONFIG_H) $(SYSTEM_H) \
354 coretypes.h $(TM_H) toplev.h $(JAVA_LEX_C) java/parse.h java/lex.h input.h
355 java/parse.o: java/parse.c java/jcf-reader.c $(CONFIG_H) $(SYSTEM_H) \
356 coretypes.h $(TM_H) function.h $(JAVA_TREE_H) $(JAVA_LEX_C) java/parse.h \
357 java/lex.h input.h $(GGC_H) debug.h gt-java-parse.h gtype-java.h target.h
359 # jcf-io.o needs $(ZLIBINC) added to cflags.
360 java/jcf-io.o: java/jcf-io.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
362 $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(ZLIBINC) \
363 $(srcdir)/java/jcf-io.c $(OUTPUT_OPTION)
365 # jcf-path.o needs a -D.
366 java/jcf-path.o: java/jcf-path.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
368 $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
369 -DLIBGCJ_ZIP_FILE='"$(datadir)/java/libgcj-$(version).jar"' \
370 -DDEFAULT_TARGET_VERSION=\"$(version)\" \
371 $(srcdir)/java/jcf-path.c $(OUTPUT_OPTION)
373 TEXI_JAVA_FILES = java/gcj.texi $(docdir)/include/fdl.texi \
374 $(docdir)/include/gpl.texi $(docdir)/include/gcc-common.texi \
378 doc/gcj.info: $(TEXI_JAVA_FILES)
379 if test "x$(BUILD_INFO)" = xinfo; then \
380 rm -f doc/gcj.info*; \
381 $(MAKEINFO) $(MAKEINFOFLAGS) -I $(docdir)/include -o $@ $<; \
384 doc/gcj.dvi: $(TEXI_JAVA_FILES)
385 $(TEXI2DVI) -I $(abs_docdir)/include -o $@ $<
387 $(htmldir)/java/index.html: $(TEXI_JAVA_FILES)
388 $(mkinstalldirs) $(@D)
390 $(TEXI2HTML) -I $(docdir)/include -I $(srcdir)/java -o $(@D) $<
392 .INTERMEDIATE: gcj.pod gcjh.pod jv-scan.pod jcf-dump.pod gij.pod \
393 jv-convert.pod grmic.pod grmiregistry.pod gcj-dbtool.pod
395 gcj.pod: java/gcj.texi
396 -$(TEXI2POD) -D gcj < $< > $@
397 gcjh.pod: java/gcj.texi
398 -$(TEXI2POD) -D gcjh < $< > $@
399 jv-scan.pod: java/gcj.texi
400 -$(TEXI2POD) -D jv-scan < $< > $@
401 jcf-dump.pod: java/gcj.texi
402 -$(TEXI2POD) -D jcf-dump < $< > $@
403 gij.pod: java/gcj.texi
404 -$(TEXI2POD) -D gij < $< > $@
405 jv-convert.pod: java/gcj.texi
406 -$(TEXI2POD) -D jv-convert < $< > $@
407 grmic.pod: java/gcj.texi
408 -$(TEXI2POD) -D grmic < $< > $@
409 grmiregistry.pod: java/gcj.texi
410 -$(TEXI2POD) -D grmiregistry < $< > $@
411 gcj-dbtool.pod: java/gcj.texi
412 -$(TEXI2POD) -D gcj-dbtool < $< > $@
414 # Install the man pages.
415 java.install-man: installdirs \
416 $(DESTDIR)$(man1dir)/$(JAVA_INSTALL_NAME)$(man1ext) \
417 $(JAVA_TARGET_INDEPENDENT_BIN_TOOLS:%=doc/%.1) \
418 doc/gij.1 doc/jv-convert.1 doc/grmic.1 doc/grmiregistry.1 \
420 for tool in $(JAVA_TARGET_INDEPENDENT_BIN_TOOLS) \
421 gij jv-convert grmic grmiregistry gcj-dbtool ; do \
422 tool_transformed_name=`echo $$tool|sed '$(program_transform_name)'`; \
423 man_name=$(DESTDIR)$(man1dir)/$${tool_transformed_name}$(man1ext); \
425 for source_name in doc/$${tool}.1 $(srcdir)/doc/$${tool}.1 ; do \
426 if test -f $$source_name; then \
427 $(INSTALL_DATA) $$source_name $$man_name; \
432 chmod a-x $$man_name ; \
435 $(DESTDIR)$(man1dir)/$(JAVA_INSTALL_NAME)$(man1ext): doc/gcj.1
437 -$(INSTALL_DATA) $< $@