Permalink
Browse files

Make man page generation generic

The creation of vmod_example.3 man page from README.rst was previously
hard-coded. It is now possible to generate any man page against any rst
template. Man pages are now ignored, instead of leaving the repository
in a dirty state.
  • Loading branch information...
1 parent b7de64f commit 8a584087a591ff3d9f78f384d11bf2ebf79117fc @Dridi Dridi committed Jun 19, 2012
Showing with 5 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +4 −1 Makefile.am
View
1 .gitignore
@@ -6,6 +6,7 @@ Makefile.in
*.lo
*.la
*~
+*.[1-9]
/aclocal.m4
/autom4te.cache/
View
5 Makefile.am
@@ -8,11 +8,14 @@ dist_man_MANS = vmod_example.3
MAINTAINERCLEANFILES = $(dist_man_MANS)
vmod_example.3: README.rst
+
+%.1 %.2 %.3 %.4 %.5 %.6 %.7 %.8 %.9:
if HAVE_RST2MAN
- ${RST2MAN} README.rst $@
+ ${RST2MAN} $< $@
else
@echo "========================================"
@echo "You need rst2man installed to make dist"
@echo "========================================"
@false
endif
+

0 comments on commit 8a58408

Please sign in to comment.