Do not force operator to remember export API_NAME=authenticator command.
Read a .env file if it is available.
Changed
changedMakefile to export from .env (if available)
changedREADME.md to offer .env alternative to export
Testing
Verify Makefile supports export and .env for API_NAME, in that order.
1. Clone/Open repo.
2. Do **not** run `export API_NAME=authenticator` command.
3. Run `make init_dbs`.
4. Verify **error** occurs (indirectly) because of missing API_NAME.
5. Create an `.env` file with content `export API_NAME=bob`.
6. Run `make init_dbs`.
7. Verify output uses `API_NAME` of **"bob"**.
8. Run `export API_NAME=authenticator`.
9. Run `make init_dbs`.
10. Verify output uses `API_NAME` of **"authenticator"**.
Notes
I read that the "make system is generic and used by multiple Tapis services".
Where is the source of truth for this generic Makefile?
Overview
Do not force operator to remember
export API_NAME=authenticator
command.Read a
.env
file if it is available.Changed
Makefile
to export from.env
(if available)README.md
to offer.env
alternative to exportTesting
Verify
Makefile
supportsexport
and.env
forAPI_NAME
, in that order.Notes
I read that the "make system is generic and used by multiple Tapis services".
Where is the source of truth for this generic Makefile?