shithub: sox

Download patch

ref: 0f8e566cc526f4c35fa41c4a49826a87e74ff498
parent: 32fe572b0053eb1cb694d945766a65de3278d7a2
author: Doug Cook <idigdoug@users.sourceforge.net>
date: Sat Mar 19 21:09:11 EDT 2011

MSys make can't handle multiple inference rules on one line

--- a/Makefile.am
+++ b/Makefile.am
@@ -27,15 +27,23 @@
 	./README.sh
 
 # Rule for making text man pages.  Uses GNU nroff's -c so not portable.
-.1.txt .3.txt .7.txt:
+.1.txt:
 	tbl $(srcdir)/$< | nroff -man -c | sed "s/.//g" > $@
+.3.txt:
+	tbl $(srcdir)/$< | nroff -man -c | sed "s/.//g" > $@
+.7.txt:
+	tbl $(srcdir)/$< | nroff -man -c | sed "s/.//g" > $@
 
 DOCTXT = sox.txt soxi.txt soxformat.txt libsox.txt README
 txt: $(DOCTXT)
 
 # Rule for making PDF man pages
-.1.pdf .3.pdf .7.pdf:
+.1.pdf:
 	pdfroff -t -man -Tps $(srcdir)/$< > $@
+.3.pdf:
+	pdfroff -t -man -Tps $(srcdir)/$< > $@
+.7.pdf:
+	pdfroff -t -man -Tps $(srcdir)/$< > $@
 
 DOCPDF = sox.pdf soxi.pdf soxformat.pdf libsox.pdf
 pdf: $(DOCPDF)
@@ -69,7 +77,11 @@
 # Return to Main Contents and link to man2html are also modified.
 FIXHTML = sed 's,<head>,&<link rel="stylesheet" href="http://sox.sourceforge.net/pub/skins/sox/sox.css" type="text/css"></link>,' 
 
-.1.html .3.html .7.html:
+.1.html:
+	groff -t -man -Thtml -P -Dsoxpng $(srcdir)/$< | $(FIXHTML) > $@
+.3.html:
+	groff -t -man -Thtml -P -Dsoxpng $(srcdir)/$< | $(FIXHTML) > $@
+.7.html:
 	groff -t -man -Thtml -P -Dsoxpng $(srcdir)/$< | $(FIXHTML) > $@
 
 DOCHTML = sox.html soxi.html soxformat.html libsox.html