about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--Documentation/include.mk8
-rw-r--r--Makefile.PL2
2 files changed, 3 insertions, 7 deletions
diff --git a/Documentation/include.mk b/Documentation/include.mk
index af5f7f24..bfbc495f 100644
--- a/Documentation/include.mk
+++ b/Documentation/include.mk
@@ -14,17 +14,13 @@ XMLSTARLET = xmlstarlet
 # libgraph-easy-perl from Debian, Graph::Easy from CPAN
 GRAPH_EASY = graph-easy
 
-# same as pod2text
-COLUMNS = 76
-
 INSTALL = install
 PODMAN = pod2man
 PODMAN_OPTS = -v --stderr -d 1993-10-02 -c 'public-inbox user manual'
 PODMAN_OPTS += -r public-inbox.git
 podman = $(PODMAN) $(PODMAN_OPTS)
-PODTEXT = pod2text
-PODTEXT_OPTS = --stderr
-podtext = $(PODTEXT) $(PODTEXT_OPTS)
+
+man2text = COLUMNS=80 MANWIDTH=80 TERM=dumb MANOPT='--nj --nh' man
 
 all:: man
 
diff --git a/Makefile.PL b/Makefile.PL
index b7851ada..fffe30e9 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -72,7 +72,7 @@ for my $i (@sections) {
                 my $pod = "Documentation/$m.pod";
                 my $txt = "Documentation/$m.txt";
                 $t->{"$m.$i : $pod"} = [ "\$(podman) -s$i $pod \$@" ];
-                $t->{"$txt : $pod"} = [ "\$(podtext) $pod \$\@+",
+                $t->{"$txt : $m.$i"} = [ "\$(man2text) ./$m.$i >\$\@+",
                                         "touch -r $pod \$\@+",
                                         "mv \$\@+ \$@" ];
                 $t->{"Documentation/$m.html : $txt"} = [ "\$(txt2pre) <$txt" ];