groff-commit
[Top][All Lists]
Advanced

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

[groff] 16/27: [build]: Install but don't "distribute" .me files.


From: G. Branden Robinson
Subject: [groff] 16/27: [build]: Install but don't "distribute" .me files.
Date: Tue, 3 May 2022 14:27:17 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit d789a495758fd54cd1ef07309a6faa4cf64486e6
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Tue May 3 10:37:59 2022 -0500

    [build]: Install but don't "distribute" .me files.
    
    Ensure that we install *.me source files, but don't include them in the
    distribution archive.
    
    * doc/doc.am (dist_otherdoc_DATA): Move `$(GENERATEDDOCFILES)` from
      here...
    
      (nodist_otherdoc_DATA): ...to here.
    
      (.PRECIOUS): Add `$(GENERATEDDOCFILES)` so that make(1) doesn't
      automatically remove "intermediate" objects in the .me.in -> .me ->
      .ps chain.
---
 ChangeLog  | 12 ++++++++++++
 doc/doc.am |  5 +++--
 2 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 22622813..57a75e9f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2022-05-02  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       [build]: Ensure that we install *.me source files, but don't
+       include them in the distribution archive.
+
+       * doc/doc.am (dist_otherdoc_DATA): Move `$(GENERATEDDOCFILES)`
+       from here...
+       (nodist_otherdoc_DATA): ...to here.
+       (.PRECIOUS): Add `$(GENERATEDDOCFILES)` so that make(1) doesn't
+       automatically remove "intermediate" objects in the .me.in -> .me
+       -> .ps chain.
+
 2022-05-02  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        [build]: Handle "gnu.eps" file better.
diff --git a/doc/doc.am b/doc/doc.am
index 88b9b9df..0171d8d2 100644
--- a/doc/doc.am
+++ b/doc/doc.am
@@ -89,8 +89,8 @@ $(PROCESSEDDOCFILES_PDF): $(PROCESSEDFILES_DEPS_PDF)
 $(PROCESSEDDOCFILES_TXT): $(PROCESSEDFILES_DEPS_TXT)
 
 otherdocdir = $(docdir)
-dist_otherdoc_DATA = $(DOCFILES_INST) $(GENERATEDDOCFILES)
-nodist_otherdoc_DATA = $(PROCESSEDDOCFILES)
+dist_otherdoc_DATA = $(DOCFILES_INST)
+nodist_otherdoc_DATA = $(PROCESSEDDOCFILES) $(GENERATEDDOCFILES)
 MOSTLYCLEANFILES += $(GENERATEDDOCFILES) $(PROCESSEDDOCFILES)
 EXTRA_DIST += $(DOCFILES_NOINST)
 
@@ -308,6 +308,7 @@ doc/grnexmpl.ps: $(doc_srcdir)/grnexmpl.me 
$(doc_srcdir)/grnexmpl.g \
 # neither '.SUFFIXES' nor 'SUFFIXES') and establishing semantics for $<
 # in target rules.  But I won't hold my breath waiting on other make(1)
 # implementors to agree.  -- GBR
+.PRECIOUS: $(GENERATEDDOCFILES)
 SUFFIXES += .me.in .me
 .me.in.me:
        $(GROFF_V)$(MKDIR_P) `dirname $@` \



reply via email to

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