> 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: pgpdpdgWShsH1.pgp
Description: OpenPGP digital signature

Reply via email to