-PODTEXT = pod2text
-PODTEXT_OPTS = --stderr
-podtext = $(PODTEXT) $(PODTEXT_OPTS)
-
-# MakeMaker only seems to support manpage sections 1 and 3...
-m1 =
-m1 += public-inbox-mda
-m1 += public-inbox-httpd
-m1 += public-inbox-nntpd
-m1 += public-inbox-watch
-m5 =
-m5 += public-inbox-config
-m7 =
-m7 += public-inbox-overview
-m8 =
-m8 += public-inbox-daemon
-
-man1 := $(addsuffix .1, $(m1))
-man5 := $(addsuffix .5, $(m5))
-man7 := $(addsuffix .7, $(m7))
-man8 := $(addsuffix .8, $(m8))
-
-all:: man html
-
-man: $(man1) $(man5) $(man7) $(man8)
+
+man2text = COLUMNS=80 MANWIDTH=80 TERM=dumb MANOPT='--nj --nh' man
+
+all:: man
+
+manpages = $(man1) $(man5) $(man7) $(man8)
+
+man: $(manpages)