groff-commit
[Top][All Lists]
Advanced

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

[groff] 01/01: msboxes.ms is documentation, not merely an example


From: Ingo Schwarze
Subject: [groff] 01/01: msboxes.ms is documentation, not merely an example
Date: Sat, 2 Apr 2022 18:49:23 -0400 (EDT)

schwarze pushed a commit to branch master
in repository groff.

commit 6bdf48eb6755b429aa82c9c5c532bd4339c1deb1
Author: Ingo Schwarze <schwarze@openbsd.org>
AuthorDate: Sun Apr 3 00:39:34 2022 +0200

    msboxes.ms is documentation, not merely an example
    
    Consequently, install msboxes.ms unconditionally and msboxes.pdf
    if BUILD_PDFDOC is enabled, both to the documentation directory
    rather than to the examples directory.
    
    While here,
     * garbage collect the redundant variable SBOXES_NORMAL_FILES
     * assign to EXTRA_DIST in one place, not two
     * move the msboxes.pdf prerequisites to the right place
       since building msboxes.ms does not need them
    
    OK gbranden@
---
 contrib/sboxes/ChangeLog |  7 +++++++
 contrib/sboxes/sboxes.am | 30 ++++++++++++++----------------
 2 files changed, 21 insertions(+), 16 deletions(-)

diff --git a/contrib/sboxes/ChangeLog b/contrib/sboxes/ChangeLog
index 3aafda5e..86f6999d 100644
--- a/contrib/sboxes/ChangeLog
+++ b/contrib/sboxes/ChangeLog
@@ -1,3 +1,10 @@
+2022-04-03  Ingo Schwarze <schwarze@openbsd.org>
+
+       * sboxes.am: msboxes.ms is documentation, not merely an example.
+       Consequently, install msboxes.ms unconditionally and msboxes.pdf
+       if BUILD_PDFDOC is enabled, both to the documentation directory
+       rather than to the examples directory.
+
 2022-04-02  Ingo Schwarze <schwarze@openbsd.org>
 
        * sboxes.am: Stop installing msboxes.ms.in;
diff --git a/contrib/sboxes/sboxes.am b/contrib/sboxes/sboxes.am
index f3fb63db..b12c9369 100644
--- a/contrib/sboxes/sboxes.am
+++ b/contrib/sboxes/sboxes.am
@@ -20,31 +20,28 @@
 sboxes_srcdir = $(top_srcdir)/contrib/sboxes
 sboxes_builddir = $(top_builddir)/contrib/sboxes
 sboxesnotquine = $(sboxes_srcdir)/notquine.sed
-# Files installed in $(tmacdir).
-SBOXES_NORMAL_FILES = contrib/sboxes/sboxes.tmac
+
 sboxestmacdir = $(tmacdir)
-dist_sboxestmac_DATA = $(SBOXES_NORMAL_FILES)
+dist_sboxestmac_DATA = contrib/sboxes/sboxes.tmac
 
 EXTRA_DIST += \
     contrib/sboxes/ChangeLog \
+    contrib/sboxes/msboxes.ms.in \
     contrib/sboxes/notquine.sed
 
 SBOXES_EXAMPLEFILES = $(sboxes_srcdir)/msboxes.ms.in
-if BUILD_EXAMPLES
-sboxesexampledir = $(exampledir)/sboxes
-SBOXES_PROCESSEDEXAMPLEFILES = $(sboxes_builddir)/msboxes.ms \
-    $(sboxes_builddir)/msboxes.pdf
-sboxesprocessedexampledir = $(exampledir)/sboxes
-nodist_sboxesprocessedexample_DATA = $(SBOXES_PROCESSEDEXAMPLEFILES)
+
+sboxesotherdocdir = $(docdir)
+nodist_sboxesotherdoc_DATA = $(sboxes_builddir)/msboxes.ms
+
+if BUILD_PDFDOC
+sboxespdfdocdir = $(pdfdocdir)
+nodist_sboxespdfdoc_DATA = $(sboxes_builddir)/msboxes.pdf
 endif
-EXTRA_DIST += \
-    contrib/sboxes/msboxes.ms.in
 
 MOSTLYCLEANFILES += msboxes.ms \
-    $(SBOXES_PROCESSEDEXAMPLEFILES)
-
-$(SBOXES_PROCESSEDEXAMPLEFILES): $(SBOXES_NORMAL_FILES) \
-  groff troff gropdf font/devpdf/build_font_files
+       $(nodist_sboxesotherdoc_DATA) \
+       $(nodist_sboxespdfdoc_DATA)
 
 # The ordering of the sed -e expressions is important.
 $(sboxes_builddir)/msboxes.ms: $(SBOXES_EXAMPLEFILES) $(sboxesnotquine)
@@ -57,7 +54,8 @@ $(sboxes_builddir)/msboxes.ms: $(SBOXES_EXAMPLEFILES) 
$(sboxesnotquine)
            $(SBOXES_EXAMPLEFILES) >> $@.tmp
        $(AM_V_GEN)mv $@.tmp $@
 
-$(sboxes_builddir)/msboxes.pdf: $(sboxes_builddir)/msboxes.ms
+$(sboxes_builddir)/msboxes.pdf: $(sboxes_builddir)/msboxes.ms \
+  $(dist_sboxestmac_DATA) groff troff gropdf font/devpdf/build_font_files
        $(GROFF_V)$(DOC_GROFF_ONLY) -M$(sboxes_srcdir) -ms -msboxes -Tpdf \
          $(sboxes_builddir)/msboxes.ms > $@
 



reply via email to

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