]> git.sur5r.net Git - i3/i3/commitdiff
manpages: don’t regenerate manpages on every 'make'
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 27 Mar 2010 15:05:26 +0000 (16:05 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 27 Mar 2010 15:05:26 +0000 (16:05 +0100)
man/Makefile

index 8b82c40d129cb3bd6e10052ecd266f8fd34bcacc..4d7836ecf335e4d8f5e54da692bbdf81eb110a1e 100644 (file)
@@ -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