texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[8401] * Makefile.am, README: Support building examples out-of-source.


From: gavinsmith0123
Subject: [8401] * Makefile.am, README: Support building examples out-of-source.
Date: Thu, 25 Oct 2018 09:47:23 -0400 (EDT)

Revision: 8401
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=8401
Author:   gavin
Date:     2018-10-25 09:47:23 -0400 (Thu, 25 Oct 2018)
Log Message:
-----------
* Makefile.am, README: Support building examples out-of-source.

Modified Paths:
--------------
    trunk/js/Makefile.am
    trunk/js/README

Modified: trunk/js/Makefile.am
===================================================================
--- trunk/js/Makefile.am        2018-10-25 13:32:24 UTC (rev 8400)
+++ trunk/js/Makefile.am        2018-10-25 13:47:23 UTC (rev 8401)
@@ -93,19 +93,25 @@
 
 hello_extra_head = '<link rel="stylesheet" type="text/css" 
href="info.css"/><script src="modernizr.js" 
type="text/javascript"></script><script src="info.js" 
type="text/javascript"></script>'
 
-examples/hello-html: examples/hello/hello.texi
+examples/hello-html: examples/hello/hello.texi examples
+       mkdir -p examples
        $(MAKEINFO) -I=$(srcdir) --html \
          -c EXTRA_HEAD=$(hello_extra_head) \
-         examples/hello/hello.texi -o $@ && \
-       cp $(js_scripts) info.css $@
+         $(srcdir)/examples/hello/hello.texi -o $@ && \
+       for f in $(js_scripts) info.css ; do \
+         cp $(srcdir)/$$f $@ ; \
+       done
 
 kawa_extra_head = '<link rel="stylesheet" type="text/css" 
href="info.css"/><link rel="stylesheet" type="text/css" 
href="kawa.css"/><script src="modernizr.js" 
type="text/javascript"></script><script src="info.js" 
type="text/javascript"></script>'
 
 examples/kawa-html: examples/kawa/kawa.texi
+       mkdir -p examples
        $(MAKEINFO) -I=$(srcdir) --html \
          -c EXTRA_HEAD=$(kawa_extra_head) \
-         examples/kawa/kawa.texi -o $@ && \
-       cp $(js_scripts) info.css kawa.css $@
+         $(srcdir)/examples/kawa/kawa.texi -o $@ && \
+       for f in $(js_scripts) info.css kawa.css ; do \
+         cp $(srcdir)/$$f $@ ; \
+       done
 
 clean-local:
        rm -rf $(examples)

Modified: trunk/js/README
===================================================================
--- trunk/js/README     2018-10-25 13:32:24 UTC (rev 8400)
+++ trunk/js/README     2018-10-25 13:47:23 UTC (rev 8401)
@@ -13,8 +13,6 @@
   ./configure
   make examples
 
-note: The Makefile doesn't support out of tree build.
-
 To check the result of EXAMPLE:
 
   firefox examples/EXAMPLE-html/index.html




reply via email to

[Prev in Thread] Current Thread [Next in Thread]