automake
[Top][All Lists]
Advanced

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

Correct approach for interdependencies


From: Germán Diago Gómez
Subject: Correct approach for interdependencies
Date: Mon, 10 Dec 2012 13:28:33 +0700

Hello all,

I don't know if this is the correct mailing list to ask because it's a
question that affects both autoconf (for configuration) and automake
(the order in which targets are run). I find the same problem of having
a library to support one project and the executable for that project
with a (simplified) typical structure:

mywholeproject/
        libmyproject/
        myprojectexe/

The problem I usually find is that myproject exe depends on
libmyproject, but when myprojectexe is going to be compiled,
libmyproject pkgconfig file is not installed yet. What is the correct
approach to solve this dependency? I wonder if make install would behave
better if instead of doing:

1.- Build subproject libmyproject
2.- Build subproject myprojectexe.
3.- Install subproject libmyproject.
4.- Install subproject myprojectexe.

it executed the sequence were 1, 3, 2, 4? This way pkgconfig could find
the .pc file without any problem since it would be already installed.
Am I missing anything here? 

Regards




reply via email to

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