help-guix
[Top][All Lists]
Advanced

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

Re: Using Makefile to run guix shell?


From: Wojtek Kosior
Subject: Re: Using Makefile to run guix shell?
Date: Thu, 8 Dec 2022 22:30:48 +0100

> ifndef GUIX_ENVIRONMENT
>     todo:=echo
> else
>     todo:=hello
> endif
> 
> stuff:
>       @echo "Enter stuff"
>       @echo "GUIX_ENVIRONMENT: ${GUIX_ENVIRONMENT}"
>       $(todo)
>       @echo "stuff done."
> 
> hello:
>       guix shell -C hello make -- $(MAKE) stuff
> 
> .PHONY: stuff hello
>
> [...]
>
> Note that the Makefile calls the Makefile but since it is run inside a
> shell --container, then you need to provide ’make’.
> 
> 
> Cheers,
> simon
> 

What is the purpose of using `$(MAKE)` over just `make` in the recipe
in this case? It would only be appropriate if you wanted the same make
to be used for both the manual and recursive invocation, right?

Attachment: pgp7CBbItYzTM.pgp
Description: OpenPGP digital signature


reply via email to

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