Makefile include .env
How to include .env or other make files in a Makefile
Today I learned that you can include the
.env file in the Makefile using the
include directive. This will expose all environment variables in the provided
.env file in your Makefile. Using this approach, you can also include another make file.
You can read more about Make
include directive from the official documentation:
This short post is part of my Today I Learned series. You can find more here.