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:
Ambrose Li
2024-05-14 04:24:53 -04:00
parent fa743076bc
commit 56de841f45
+6 -6
View File
@@ -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