Move mans to the new Makefile layout

This commit is contained in:
Quentin Glidic
2012-06-17 14:52:41 +02:00
parent e452acb30e
commit 8029fae6a9
6 changed files with 39 additions and 25 deletions

View File

@ -1,15 +1,7 @@
A2M:=a2x -f manpage --asciidoc-opts="-f asciidoc.conf"
all: i3.1 i3-msg.1 i3-input.1 i3-nagbar.1 i3-config-wizard.1 i3-migrate-config-to-v4.1 i3-sensible-editor.1 i3-sensible-pager.1 i3-sensible-terminal.1 i3-dump-log.1
%.1: %.man asciidoc.conf
${A2M} $<
all:
$(MAKE) -C .. mans
clean:
for file in $$(echo i3 i3-msg i3-input i3-nagbar i3-wsbar i3-config-wizard i3-migrate-config-to-v4 i3-sensible-editor i3-sensible-pager i3-sensible-terminal i3-dump-log); \
do \
rm -f $${file}.1 $${file}.html $${file}.xml; \
done
$(MAKE) -C .. clean-mans
distclean: clean
rm -f *.1
.PHONY: all clean