Hi Harlan, * Harlan Stenn wrote on Tue, Jun 21, 2011 at 12:13:06PM CEST: > For example, I have 'sntp.man.in' and 'sntp.mdoc.in' 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 > "8". > > I also AC_SUBST([MANTAGFMT]), and MANTAGFMT is either "man" or "mdoc".
Try: man1_MANS = man8_MANS = man_MANS = sntp.$(SNTP_MS) ... sntp.$(SNTP_MS): $(srcdir)sntp.$(MANTAGFMT).in sed -f m4/mansec.sed $(srcdir)sntp.$(MANTAGFMT).in > sntp.$(SNTP_MS) Untested, please report back if it doesn't work. And yes, it's not too intuitive, sorry. Cheers, Ralf