Make sure "all" is the default target. Try to not clobber existing man page and html file if xmltoman/xsltproc fails/does not exist
This commit is contained in:
+6
-6
@@ -1,11 +1,11 @@
|
||||
shairport-sync.1: shairport-sync.1.xml
|
||||
xmltoman shairport-sync.1.xml > shairport-sync.1
|
||||
|
||||
shairport-sync.html: shairport-sync.1.xml
|
||||
xsltproc xmltoman.xsl shairport-sync.1.xml > shairport-sync.html
|
||||
|
||||
all: shairport-sync.1 shairport-sync.html
|
||||
|
||||
%.1: %.1.xml
|
||||
xmltoman $*.1.xml > $*.tmp && mv $*.tmp $*.1
|
||||
|
||||
%.html: %.1.xml
|
||||
xsltproc xmltoman.xsl $*.1.xml > $*.tmp && mv $*.tmp $*.html
|
||||
|
||||
clean:
|
||||
rm shairport-sync.1
|
||||
rm shairport-sync.html
|
||||
|
||||
Reference in New Issue
Block a user