bug-make
[Top][All Lists]
Advanced

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

Re: Fwd: Re: Target-specific variable in subdirectory problem


From: Benjamin Cama
Subject: Re: Fwd: Re: Target-specific variable in subdirectory problem
Date: Thu, 03 Aug 2017 18:04:43 +0200

Hi Sven,

Le jeudi 03 août 2017 à 16:46 +0100, Sven C. Dack a écrit :
> it's a common practise to create a Makefile for each subdirectory and
> have it include definitions from a parent Makefile. That's probably why
> you don't see that many directory-spanning features in make. It's easier
> to manage Makefiles in a structure similar to the source code instead of
> having it all packed into one Makefile, especially the larger your
> project grows.

Thanks for the advice, but my use case in not typical of this kind of
setup (I know and use Makefile in subdirectories for other projects).

In my case, the subdirectories are “dynamically” generated, because my
goal is to be able to generate N times some target, starting from a
template. The target list and dependencies is dynamically generated and
then included in the main Makefile, where I want to have the generic
recipe to be able to build things in subdirectories.

Hope this helps to clarify my goal. Maybe I should go the automake
route, I don't know, but I wanted to try vanilia make first.

-- 
Benjamin Cama - Tél : 258




reply via email to

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