Hello configurators,
I could not find this in the docs: how can I use wildcards correctly
in Makefile.am ?
The following Makefile.am works fine, but *only* if srcdir==builddir.
However, it is recommended to seperate the sources from objects by
using a clean builddir, in which configure is run.
--- cut here ---
# wavs/
pkgdatadir = $(datadir)/games/@PACKAGE@/wavs
pkgdata_DATA = $(wildcard *.wav)
EXTRA_DIST = $(pkgdata_DATA)
-----------------
Now, if I do a 'make install' with builddir==srcdir, the wavs are
found and installed.
If I do a 'make install' in a previously clean dir (no sources, only
configure stuff and objects), no wavs are found.
What I have tried so far:
* Use $(wildcard $(srcdir)/wavs), then make install fails on dir-creation
* fiddle with VPATH var, still no wavs found.
Can someone please enlighten me? (I use linux+gmake)
Thanks in advance,
Bram Stolk
--
------------------------------------------------------------------------------
Bram Stolk, VR Specialist.
SARA Academic Computing Services Amsterdam, PO Box 94613, 1090 GP AMSTERDAM
email: [EMAIL PROTECTED] Phone +31-20-5923059 Fax +31-20-6683167
"I heard if you play the NT-4.0-CD backwards, you get a satanic message."
"Thats nothing, if you play it forward, it installs NT-4.0"
------------------------------------------------------------------------------