From: Michael Stapelberg Date: Sat, 27 Mar 2010 15:05:26 +0000 (+0100) Subject: manpages: don’t regenerate manpages on every 'make' X-Git-Tag: 4.0~14^2~99 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1a10a089e8fa94977b367aef8e7306d57022a383;p=i3%2Fi3 manpages: don’t regenerate manpages on every 'make' Conflicts: man/Makefile --- diff --git a/man/Makefile b/man/Makefile index ce97c53e..ed72ebed 100644 --- a/man/Makefile +++ b/man/Makefile @@ -1,12 +1,18 @@ -all: - a2x -f manpage --asciidoc-opts="-f asciidoc.conf" i3.man - a2x -f manpage --asciidoc-opts="-f asciidoc.conf" i3-msg.man - a2x -f manpage --asciidoc-opts="-f asciidoc.conf" i3-input.man - a2x -f manpage --asciidoc-opts="-f asciidoc.conf" i3-nagbar.man - pod2man ../i3-wsbar > i3-wsbar.1 +A2M:=a2x -f manpage --asciidoc-opts="-f asciidoc.conf" + +all: i3.1 i3-msg.1 i3-input.1 i3-nagbar.1 i3-wsbar.1 + +%.1: %.man asciidoc.conf + ${A2M} $< + +i3-wsbar.1: ../i3-wsbar + pod2man $^ > $@ clean: - for file in "i3 i3-msg i3-input i3-nagbar"; \ + for file in $$(echo i3 i3-msg i3-input i3-nagbar i3-wsbar); \ do \ rm -f $${file}.1 $${file}.html $${file}.xml; \ done + +distclean: clean + rm -f *.1