public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org>
To: newlib-cvs@sourceware.org
Subject: [newlib-cygwin] Add libgloss install-pdf and install-html targets.
Date: Tue, 20 Nov 2018 10:24:00 -0000	[thread overview]
Message-ID: <20181120102405.98989.qmail@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=7e72be1c390cb771ef54db4df50d4041bdaa1488

commit 7e72be1c390cb771ef54db4df50d4041bdaa1488
Author: Jim Wilson <jimw@sifive.com>
Date:   Mon Nov 19 15:27:05 2018 -0800

    Add libgloss install-pdf and install-html targets.
    
    The toplevel makefile used by binutils/gcc/newlib/etc has install-pdf and
    install-html targets, but they fail because libgloss doesn't support them.
    Tested with an arm-eabi combined tree build and install, and verifying that
    the install-pdf and install-html targets now work, and that the pdf and html
    doc files are now in the install tree.
    
    	libgloss/
    	* Makefile.in (install-html, install-pdf): New.
    	* doc/Makefile.in (htmldir, pdfdir): New.
    	(porting.ps): Delete white space on blank line.
    	(install-pdf, install-html): New.

Diff:
---
 libgloss/Makefile.in     | 10 ++++++++++
 libgloss/doc/Makefile.in | 21 ++++++++++++++++++++-
 2 files changed, 30 insertions(+), 1 deletion(-)

diff --git a/libgloss/Makefile.in b/libgloss/Makefile.in
index 4528d58..2f99640 100644
--- a/libgloss/Makefile.in
+++ b/libgloss/Makefile.in
@@ -181,6 +181,16 @@ install-info:
 	srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
 	$(MAKE) DO=$@ DODIRS=doc $(FLAGS_TO_PASS) subdir_do
 
+install-html:
+	rootpre=`pwd`/; export rootpre; \
+	srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
+	$(MAKE) DO=$@ DODIRS=doc $(FLAGS_TO_PASS) subdir_do
+
+install-pdf:
+	rootpre=`pwd`/; export rootpre; \
+	srcrootpre=`cd $(srcdir); pwd`/; export srcrootpre; \
+	$(MAKE) DO=$@ DODIRS=doc $(FLAGS_TO_PASS) subdir_do
+
 clean-info:
 
 force:
diff --git a/libgloss/doc/Makefile.in b/libgloss/doc/Makefile.in
index 07fb1e1..53d0370 100644
--- a/libgloss/doc/Makefile.in
+++ b/libgloss/doc/Makefile.in
@@ -22,6 +22,8 @@ datarootdir = @datarootdir@
 mandir = @mandir@
 man1dir = $(mandir)/man1
 infodir = @infodir@
+htmldir = @htmldir@
+pdfdir = @pdfdir@
 
 MAKEINFO = makeinfo
 TEXI2DVI = TEXINPUTS=$(TEXIDIR):$(srcdir):$$TEXINPUTS texi2dvi
@@ -69,7 +71,7 @@ porting.html: $(srcdir)/porting.texi $(srcdir)/porting.texi
 
 porting.ps: porting.dvi
 	dvips -f porting.dvi > porting.ps
-		
+
 #   different targets for -ms, -mm, -me
 # Try to use a recent texi2roff.  v2 was put on prep in jan91.
 # If you want an index, see texi2roff doc for postprocessing 
@@ -146,6 +148,23 @@ install-info: info
 		$(INSTALL_DATA) $$i $(DESTDIR)$(infodir)/$$i ; \
 	done
 
+install-pdf: pdf
+	for i in *.pdf ; do \
+		$(INSTALL_DATA) $$i $(DESTDIR)$(pdfdir)/$$i ; \
+	done
+
+install-html: html
+	for i in *.html ; do \
+	    if [ -d $$i ]; then \
+		mkdir -p $(DESTDIR)$(htmldir)/$$i ; \
+		for j in $$i/*.html ; do \
+		    $(INSTALL_DATA) $$j $(DESTDIR)$(htmldir)/$$j ; \
+		done \
+	    else \
+		$(INSTALL_DATA) $$i $(DESTDIR)$(htmldir)/$$i ; \
+	    fi ; \
+	done
+
 clean-info:
 	-rm -rf *.info*


                 reply	other threads:[~2018-11-20 10:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181120102405.98989.qmail@sourceware.org \
    --to=corinna@sourceware.org \
    --cc=newlib-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).