Thanx for the answers of my questions.

> Von: "Bertrand Garrigues" <bertrand.garrig...@laposte.net>

> I used the Automake variables man1_MANS, man5_MANS, man7_MANS to define
> the list of man files to be installed in sections 1, 5, and 7.
> 
> This is described here:
> 
>   https://www.gnu.org/software/automake/manual/automake.html#Man-Pages

Nice documentation.
 
>   man1_MANS += $(PREFIXMAN1)
>   man1_MANS += $(PREFIXMAN5)
>   man1_MANS += $(PREFIXMAN7)
>   
> are incorrect, it should be of course
> 
>   man1_MANS += $(PREFIXMAN1)
>   man5_MANS += $(PREFIXMAN5)
>   man7_MANS += $(PREFIXMAN7)
> 
Fixed.

> I've left man files as .man in the source tree because it was the case
> before the Automake migration.  I you prefer to have files in the source
> tree that have a suffix corresponding to the section they belong to
> (gpinyin.1.man instead of gpinyin.man for example) it should be possible
> but more complicated because we would have to defined more suffix rules
> to build the final man files from .1.man, .5.man and .7.man (we would
> have to define a new suffix I think, see
> https://www.gnu.org/software/automake/manual/automake.html#Suffixes).

I will use the SUFFIXES in Makefile.am:

SUFFIXES = .1.man .n
.1.man.n:
       ...

SUFFIXES = .5.man .n
.5.man.n:
       ...

SUFFIXES = .7.man .n
.7.man.n:
       ...

On a test, it worked perfectly.

Berne Warken

Reply via email to