From 55bcd32b46f7f5a10d947ddb53b20f6aee003b27 Mon Sep 17 00:00:00 2001 From: Andrew Jenner Date: Mon, 4 Jan 2010 01:36:36 +0000 Subject: configure.ac: Add install-html to target_list for Make-hooks. * configure.ac: Add install-html to target_list for Make-hooks. * configure: Regenerate. * fortran/Make-lang.in (F95_HTMLFILES): New. (fortran.html): Use it. (fortran.install-html): New. * Makefile.in (install-html): Add lang.install-html. * java/Make-lang.in (JAVA_HTMLFILES): New. (java.html): Use it. (java.install-html): New. * objc/Make-lang.in (objc.install-html): New. * objcp/Make-lang.in (obj-c++.install-html): New. * cp/Make-lang.in (c++.install-html): New. * ada/gcc-interface/Make-lang.in (ada.install-html): New. * lto/Make-lang.in (lto.install-html): New. From-SVN: r155602 --- gcc/java/Make-lang.in | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'gcc/java') diff --git a/gcc/java/Make-lang.in b/gcc/java/Make-lang.in index a56e2b6..107977d 100644 --- a/gcc/java/Make-lang.in +++ b/gcc/java/Make-lang.in @@ -28,7 +28,7 @@ # # foo.all.cross, foo.start.encap, foo.rest.encap, # foo.install-common, foo.install-man, foo.install-info, foo.install-pdf, -# foo.info, foo.dvi, foo.pdf, foo.html, foo.uninstall, +# foo.install-html, foo.info, foo.dvi, foo.pdf, foo.html, foo.uninstall, # foo.mostlyclean, foo.clean, foo.distclean, # foo.maintainer-clean, foo.stage1, foo.stage2, foo.stage3, foo.stage4 # @@ -138,7 +138,9 @@ JAVA_PDFFILES = doc/gcj.pdf java.pdf: $(JAVA_PDFFILES) -java.html: $(build_htmldir)/java/index.html +JAVA_HTMLFILES = $(build_htmldir)/java + +java.html: $(JAVA_HTMLFILES)/index.html JAVA_MANFILES = doc/gcj.1 doc/jcf-dump.1 doc/gij.1 \ doc/jv-convert.1 doc/grmic.1 \ @@ -205,6 +207,22 @@ java.install-pdf: $(JAVA_PDFFILES) $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(pdfdir)/gcc/$$f"; \ done +java.install-html: $(JAVA_HTMLFILES) + @$(NORMAL_INSTALL) + test -z "$(htmldir)" || $(mkinstalldirs) "$(DESTDIR)$(htmldir)" + @list='$(JAVA_HTMLFILES)'; for p in $$list; do \ + if test -f "$$p" || test -d "$$p"; then d=""; else d="$(srcdir)/"; fi; \ + f=$(html__strip_dir) \ + if test -d "$$d$$p"; then \ + echo " $(mkinstalldirs) '$(DESTDIR)$(htmldir)/$$f'"; \ + $(mkinstalldirs) "$(DESTDIR)$(htmldir)/$$f" || exit 1; \ + echo " $(INSTALL_DATA) '$$d$$p'/* '$(DESTDIR)$(htmldir)/$$f'"; \ + $(INSTALL_DATA) "$$d$$p"/* "$(DESTDIR)$(htmldir)/$$f"; \ + else \ + echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(htmldir)/$$f'"; \ + $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(htmldir)/$$f"; \ + fi; \ + done # # Clean hooks: # A lot of the ancillary files are deleted by the main makefile. -- cgit v1.1