From 200cd71b4d7712b1fea021a444d50254ce2cf720 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 27 Mar 2010 16:05:26 +0100 Subject: [PATCH] =?utf8?q?manpages:=20don=E2=80=99t=20regenerate=20manpage?= =?utf8?q?s=20on=20every=20'make'?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- man/Makefile | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/man/Makefile b/man/Makefile index 8b82c40d..4d7836ec 100644 --- a/man/Makefile +++ b/man/Makefile @@ -1,11 +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 - 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-wsbar.1 + +%.1: %.man asciidoc.conf + ${A2M} $< + +i3-wsbar.1: ../i3-wsbar + pod2man $^ > $@ clean: for file in "i3 i3-msg i3-input"; \ do \ rm -f $${file}.1 $${file}.html $${file}.xml; \ done + +distclean: clean + rm -f *.1 -- 2.39.5