automake: how to install all files of a given type?

Heiner <[email protected]>
Newsgroups gmane.comp.gnu.utils
Organization T-Online
Message-ID <[email protected]>
Hi!

I am creating an Makefile.am, which should compile a html help from
docbook sources. The docbook sources are some .xml and one .xsl file. If
xsltproc has compiled them, a set of .html files is created. I want to
install them all:


AUTOMAKE_OPTIONS = foreign
SUBDIRS =

pictures = apicture.gif
source_tarball_files = testproj.xsl testproj.xml test_chapter.xml 
EXTRA_DIST = $(source_tarball_files) $(pictures)

htmlhelpdir = $(helpdir)
htmlhelp_created_files = testproj.hhc testproj.hhp testproj.hhk 
htmlhelp_DATA = *.html $(pictures)

all: testproj.hhc

$(htmlhelp_created_files): $(source_tarball_files)
	$(xsltproc) testproj.xsl testproj.xml

*.html:



does, what I want (look at the *.html behind htmlhelp_DATA). Unfortunately
it works only, if I add the strange *.html target, so I guess, this
solution is quite dirty. Is there a cleaner one?

I do NOT want to list the *.html manually, as they can quickly change
(list in java, where one .java file produces an arbitrary number of .class
files)
 

Heiner
[email protected]
Remove the nospam to get my real address
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.