Bootstrap D template

Seb seb at wilzba.ch
Fri Feb 2 01:16:50 UTC 2018


On Thursday, 1 February 2018 at 23:35:43 UTC, Tony wrote:
> On Thursday, 1 February 2018 at 22:01:52 UTC, Mike Wey wrote:
>
>> https://www.gnu.org/software/make/manual/html_node/Prerequisite-Types.html#Prerequisite-Types
>
> Thanks! Couldn't seem to get a search to work.
>
> I was hoping the "|"  would explain the behavior that I don't 
> understand, but I don't think it does.
>
> The instructions say to just type "make". My understanding is 
> that without a specified target, the topmost target in the 
> Makefile is used. In this case it is "bin", which has no 
> dependencies, and one action - mkdir. I would think that the 
> Makefile would stop after making that directory as no other 
> actions are given and no dependencies were specified. But it 
> doesn't.

`DEFAULT_GOAL` allows to set an explicit target and keep a 
everything nicely ordered.

Is something not working when you just type `make`?
Or are you just trying to understand how things work?
In the latter case: you don't need to use make, to build your 
files, I just use it for small projects because it's super easy.
Anyhow there are other ways you could use this without needing to 
dive into make:
- as a wrapper - call your actions from a new Makefile target and 
simply depend on the compiler (that's how I use dub in such 
projects)
- execute `make` as part of your build script. It will fetch the 
compiler if non-existent and be a no-op otherwise.

What are you planning to do?


More information about the Digitalmars-d-announce mailing list