]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Make sure "all" is the default target. Try to not clobber existing man page and html...
authorAmbrose Li <ambrose.li@gmail.com>
Tue, 14 May 2024 08:24:53 +0000 (04:24 -0400)
committerAmbrose Li <ambrose.li@gmail.com>
Tue, 14 May 2024 08:24:53 +0000 (04:24 -0400)
man/Makefile

index 53cceef80a3096cac9d864fa9fe23f07e64ed77a..cf52c5abdcac327e8f3fc06e1636ae1bcec0ede5 100644 (file)
@@ -1,10 +1,10 @@
-shairport-sync.1: shairport-sync.1.xml
-       xmltoman shairport-sync.1.xml > shairport-sync.1
+all: shairport-sync.1 shairport-sync.html
 
-shairport-sync.html: shairport-sync.1.xml
-       xsltproc xmltoman.xsl shairport-sync.1.xml > shairport-sync.html
+%.1: %.1.xml
+       xmltoman $*.1.xml > $*.tmp && mv $*.tmp $*.1
 
-all: shairport-sync.1 shairport-sync.html
+%.html: %.1.xml
+       xsltproc xmltoman.xsl $*.1.xml > $*.tmp && mv $*.tmp $*.html
 
 clean:
        rm shairport-sync.1