automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to install data / lib in more than 1 place?


From: Georg-Johann Lay
Subject: How to install data / lib in more than 1 place?
Date: Tue, 10 Dec 2019 20:59:57 +0100
User-agent: Thunderbird 2.0.0.24 (Windows/20100228)

Hi, I have an automake file with rules for a lib like this:

__install_dir = $(prefix)/avr/lib/$(AVR_INSTALL_DIR)

avrdir = $(__install_dir)
avrlibdir = $(__install_dir)

avr_LIBRARIES = libdev.a
nodist_libdev_a_SOURCES = ...

What would be the recommended way to install libdev.a also in several sub-folders like in $(avrlibdir)/dir1 $(avrlibdir)/dir2 etc.?

Currently, there are a bunch of SUBDIRS which are all generating the same binary, it's just that they are installed in a slightly different place.

Same for data:

avr_DATA = crt1.o

Would one just

avr1dir = $(avrdir)/xdir

avr1_DATA = crt1.o

Thanks for any insights,

Johann



reply via email to

[Prev in Thread] Current Thread [Next in Thread]