[Top][All Lists]

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

Choosing man section at configure time

From: Harlan Stenn
Subject: Choosing man section at configure time
Date: Tue, 21 Jun 2011 03:13:06 -0700

I'm trying to allow the selection of target man sections for each man
page at configure time.

For example, I have '' and '' in the distribution
tarball, and at configure time "stuff happens" where the decision is
made as to which version (man or mdoc) of the manual is to be installed,
and also the manual section it should go in to.

I AC_SUBST([SNTP_MS]), and SNTP_MS will have the value "1", "1m", or

I also AC_SUBST([MANTAGFMT]), and MANTAGFMT is either "man" or "mdoc".

I have tried using the following in my

 man_MANS=       sntp.$(SNTP_MS)
 sntp.$(SNTP_MS): $(srcdir)sntp.$(MANTAGFMT).in
        sed -f m4/mansec.sed $(srcdir)sntp.$(MANTAGFMT).in > sntp.$(SNTP_MS)

and also:

 sntp.1 sntp.1c sntp.8: $(srcdir)sntp.$(MANTAGFMT).in
        sed -f m4/mansec.sed $(srcdir)sntp.$(MANTAGFMT).in > sntp.$(SNTP_MS)

but the 'install-man' target remains "empty".

I'm really hoping I don't have to enumerate the choices and use automake
conditionals to choose the verisons I want...

Harlan Stenn <address@hidden>  - be a member!

reply via email to

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