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

commit 4f22171c7ea2cdcf465ddea81d47740cd24af743
Author: Jon Turney <jon.tur...@dronecode.org.uk>
Date:   Tue May 27 17:13:37 2025 +0100

    Cygwin: doc: Install FAQ as well
    
    We don't currrently deploy the CSS file to the website, because the FAQ
    doesn't get installed, so instead we copy all the doc files from the
    build directory.
    
    That omits docbook.css, which is installed from directly from the source
    directory. (We just happen to have a similar file lying around on the
    webserver).
    
    Instead, just install the FAQ.
    
    There will be a separate change to the cygwin packaging to avoid
    including the FAQ in the cygwin-doc package. (I guess we'd rather people
    go online for that, to ensure they have the latest version?)
    
    Also, add matching uninstall rules.

Diff:
---
 winsup/doc/Makefile.am | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/winsup/doc/Makefile.am b/winsup/doc/Makefile.am
index 650e0c924..4ea7e99a7 100644
--- a/winsup/doc/Makefile.am
+++ b/winsup/doc/Makefile.am
@@ -48,7 +48,7 @@ clean-local:
        rm -f *.5
        rm -f *.info* charmap
 
-install-html-local: cygwin-ug-net/cygwin-ug-net.html cygwin-api/cygwin-api.html
+install-html-local: cygwin-ug-net/cygwin-ug-net.html 
cygwin-api/cygwin-api.html faq/faq.html
        @$(MKDIR_P) $(DESTDIR)$(htmldir)/cygwin-ug-net
        $(INSTALL_DATA) cygwin-ug-net/*.html $(DESTDIR)$(htmldir)/cygwin-ug-net
        (cd $(DESTDIR)$(htmldir)/cygwin-ug-net && ln -f cygwin-ug-net.html 
index.html)
@@ -57,6 +57,10 @@ install-html-local: cygwin-ug-net/cygwin-ug-net.html 
cygwin-api/cygwin-api.html
        $(INSTALL_DATA) cygwin-api/*.html $(DESTDIR)$(htmldir)/cygwin-api
        (cd $(DESTDIR)$(htmldir)/cygwin-api && ln -f cygwin-api.html index.html)
        $(INSTALL_DATA) $(srcdir)/docbook.css $(DESTDIR)$(htmldir)/cygwin-api
+       @$(MKDIR_P) $(DESTDIR)$(htmldir)/faq
+       $(INSTALL_DATA) faq/faq.html $(DESTDIR)$(htmldir)/faq
+       (cd $(DESTDIR)$(htmldir)/faq && ln -f faq.html index.html)
+       $(INSTALL_DATA) $(srcdir)/docbook.css $(DESTDIR)$(htmldir)/faq
 
 install-extra-man: api2man.stamp intro2man.stamp utils2man.stamp
        @$(MKDIR_P) $(DESTDIR)$(man1dir)
@@ -100,6 +104,9 @@ uninstall-html:
        done ;
        rm -f $(DESTDIR)$(htmldir)/cygwin-api/index.html
        rm -f $(DESTDIR)$(htmldir)/cygwin-api/docbook.css
+       rm -f $(DESTDIR)$(htmldir)/faq/faq.html
+       rm -f $(DESTDIR)$(htmldir)/faq/index.html
+       rm -f $(DESTDIR)$(htmldir)/faq/docbook.css
 
 uninstall-info:
        for i in *.info* ; do \

Reply via email to