Simplify man page production rule
authorYann Dirson <ydirson@free.fr>
Mon, 20 Oct 2014 09:00:01 +0000 (11:00 +0200)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Mon, 20 Oct 2014 09:00:01 +0000 (11:00 +0200)
No need for any intermediary files, and be sure not to include a
timestamp in the compressed manpage, for reproducibility concerns.

Makefile

index d0c91a2..9320b0f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -27,16 +27,13 @@ install: ${ALL} ${srcdir}/svg/*
        cp -u ${srcdir}/hachu.eng $(DESTDIR)/usr/share/games/plugins/xboard
 
 hachu.6.gz: hachu.pod
-       pod2man -s 6 hachu.pod > hachu.man
-       cp hachu.man hachu.6
-       rm -f hachu.6.gz
-       gzip hachu.6
+       pod2man -s 6 hachu.pod | gzip -9n > hachu.6.gz
 
 clean:
        rm -f ${ALL}
 
 dist-clean:
-       rm -f ${ALL} *~ chu/*~ *.man md5sums
+       rm -f ${ALL} *~ chu/*~ md5sums
 
 dist:
        install -d -m0755 HaChu