[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pod to man

From: Ralf Wildenhues
Subject: Re: pod to man
Date: Wed, 16 Dec 2009 08:05:08 +0100
User-agent: Mutt/1.5.20 (2009-10-28)

* Monty Taylor wrote on Wed, Dec 16, 2009 at 05:01:15AM CET:
> I have several document source files, each ending in pod, which will
> each produce one more more man pages when run through pod2man. Simply,
> something like this:
> function1.3: source.pod
> function2.3: source.pod
> %.3: %.pod
>       pod2man $@ $<
> Of course, that doesn't work because the target files don't match the
> source files. But I want to say "here's how to build these files" and
> then provide the mapping between source and target.

Another possibility is to not name the output files %.3, but, and
stick them in the respective man3_MANS variable.  Automake will know to
rename them appropriately at 'make install' time.

(I suppose you know that pattern rules are GNU make-specific, whereas
in this case, portable inference rules would suffice:
        pod2man $@ $<


reply via email to

[Prev in Thread] Current Thread [Next in Thread]