The problem is when any PDF is created, the result is two duplicate documents concatenated together. Solution: Add the "--no-toc-relocation" parameter to pdfroff as a work-around. [ew: format + edit commit message, add references: https://bugs.debian.org/538326 http://lists.gnu.org/archive/html/groff/2009-08/msg00028.html ]
Unified · Split
| @@ -39,11 +39,11 @@ txt: $(DOCTXT) · 38 unmodified lines | ||
| 39 | 39 | |
| 40 | 40 | # Rule for making PDF man pages |
| 41 | 41 | .1.pdf: |
| 42 | − pdfroff -t -man -Tps $< > $@ | |
| 42 | + pdfroff -t -man --no-toc-relocation -Tps $< > $@ | |
| 43 | 43 | .3.pdf: |
| 44 | − pdfroff -t -man -Tps $< > $@ | |
| 44 | + pdfroff -t -man --no-toc-relocation -Tps $< > $@ | |
| 45 | 45 | .7.pdf: |
| 46 | − pdfroff -t -man -Tps $< > $@ | |
| 46 | + pdfroff -t -man --no-toc-relocation -Tps $< > $@ | |
| 47 | 47 | |
| 48 | 48 | DOCPDF = sox.pdf soxi.pdf soxformat.pdf libsox.pdf |
| 49 | 49 | pdf: $(DOCPDF) |