[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Another autotool question: installing multiple files
- Date: 16 Jul 2003 04:40:25 +0200
- From: corsepiu at faw.uni-ulm.de (Ralf Corsepius)
- Subject: Another autotool question: installing multiple files
On Tue, 2003-07-15 at 22:24, Till Straumann wrote:
> I have another question:
> It seems that
> $(INSTALL_DATA) file1 file2 file3 dir
> doesn't work on all platforms - some 'install' variants
> apparently allow only for a single file to be installed.
Exactly. In addition to that you have to test for existence, rsp. create
the "dir" in advance to invoking the "copying"-install.
> What can I do to install multiple files - do I have to
> code a loop myself?
Generally speaking, yes, but ...
.. if using automake, automake will do this for you (You have just
discovered one (minor) reason why automake exists ;-)) All you need to
do then is to have something similar to this in your Makefile.am
mydirdir = dir
mydir_DATA = file1 file2 file3
[Here, mydir is the make variable containing your "dir".]
Wrt. RTEMS, however, there is one problem with automake:
Automake does not support the kind of preinstallation RTEMS applies,
therefore you have to resort to manually written make-rules for
preinstallation (cf. the PREINSTALL* vars in RTEMS-Makefiles).