* Daniel Leidert wrote on Sat, May 06, 2006 at 05:13:27PM CEST: > Am Samstag, den 06.05.2006, 17:09 +0200 schrieb Daniel Leidert: > > > > As a small example for what I tried: > > > > man_src = \ > > foo.1.xml \ > > bar.1.xml \ > > lib.3.cml > > > > man_MANS = $(patsubst %.xml,%,$(man_src))
> I forgot something, why I thought, this is a bug. A similar code, works: > > man1_MANS = $(patsubst %.1.xml,%.1,$(filter %.1.xml,$(man_src))) > man3_MANS = $(patsubst %.3.xml,%.3,$(filter %.3.xml,$(man_src))) > > This works perfectly. So I thought, man_MANS should work too. Ahh. That's because $(patsubst..) is GNU make specific notation, and Automake doesn't grok that, thus doesn't see any numbered manpages for which to output install rules. In the second example, there isn't much to grok for Automake: it will already know where to install those manpages. But: if you then go and list them elsewhere, e.g., EXTRA_DIST = $(man1_MANS) then Automake will again fail to do what you want (because the arguments to EXTRA_DIST again have to be grokked by Automake). In other words, it's pure luck that the second example does the right thing. I think this may be done for portable make like this: man_MANS = foo.1 bar.1 lib.3 and to create the pages, you can use a suffix rule: SUFFIXES = .xml .xml: echo create_manpage from $< >$@ For clean packaging, you could EXTRA_DIST = foo.1.xml .. CLEANFILES = $(man_MANS) where now, unfortunately, there is some duplication necessary in order to remain portable. Hope that helps. Cheers, Ralf -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]