diff options
author | Jani Nikula <jani.nikula@intel.com> | 2015-04-14 22:33:33 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2015-04-30 14:22:05 +0300 |
commit | 4650d3406cd2e1378b215793730b59c065c230d4 (patch) | |
tree | d0ec7611156ee4c60ce0efd07279f787828b2d54 /man/Makefile.am | |
parent | 30a1360f6abeed5f7aaaa069380d07f94ae9a036 (diff) |
man: add man page for intel_reg in reStructured text format
Produce the intel_reg man page from rst using rst2man. Also facilitate
writing any man page in reStructured text, as long as rst2man is
available.
v2: configure check for rst2man, credits to Thomas Wood for that.
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'man/Makefile.am')
-rw-r--r-- | man/Makefile.am | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/man/Makefile.am b/man/Makefile.am index dcd79528..ee09156c 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -21,6 +21,14 @@ appman_PRE = \ appman_DATA = $(appman_PRE:man=$(APP_MAN_SUFFIX)) +# man pages in rst, only used if we have rst2man +appman_RST = \ + intel_reg.rst + +if HAVE_RST2MAN +appman_DATA += $(appman_RST:rst=$(APP_MAN_SUFFIX)) +endif + EXTRA_DIST = $(appman_PRE) CLEANFILES = $(appman_DATA) @@ -29,3 +37,7 @@ SUFFIXES = .$(APP_MAN_SUFFIX) .man .man.$(APP_MAN_SUFFIX): $(AM_V_GEN)$(SED) $(MAN_SUBSTS) < $< > $@ + +# FIXME: handle MAN_SUBST in rst +.rst.$(APP_MAN_SUFFIX): + $(AM_V_GEN)rst2man < $< > $@ |