Skip to content

Commit

Permalink
Makefile: have a better target/recipe with deps for man pages
Browse files Browse the repository at this point in the history
The `man` target is not currently using make's dependency system, let's
fix that.

Signed-off-by: Cleber Rosa <[email protected]>
  • Loading branch information
clebergnu committed Mar 19, 2015
1 parent 7bd4cb0 commit b7115a0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@ link:
test -f ../avocado-virt/avocado/plugins/virt.py && ln -s ../../../avocado-virt/avocado/plugins/virt.py avocado/plugins/ || true
test -f ../avocado-virt/avocado/plugins/virt_bootstrap.py && ln -s ../../../avocado-virt/avocado/plugins/virt_bootstrap.py avocado/plugins/ || true

man:
rst2man man/avocado.rst man/avocado.1
rst2man man/avocado-rest-client.rst man/avocado-rest-client.1
man: man/avocado.1 man/avocado-rest-client.1

.PHONY: source install clean check link man
.PHONY: source install clean check link

# implicit rule/recipe for man page creation
%.1: %.rst
rst2man $< $@

0 comments on commit b7115a0

Please sign in to comment.