Created
August 8, 2022 14:43
-
-
Save OlivierBinette/300d995a4da3e810a6cbd71cb97e0ff0 to your computer and use it in GitHub Desktop.
Makefile template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Development utilities for XX | |
## | |
## Usage: | |
## make <target> [<arg>=<value> ...] | |
## | |
## Targets: | |
## help: Show this help message. | |
## env: Create or update conda environment "XX" | |
ENV?=XX | |
.PHONY: help env | |
help: makefile | |
@sed -n "s/^##//p" $< | |
env: environment.yml | |
@(echo "Creating ${ENV} environment..."; conda env create -f $<) \ | |
|| (echo "Updating ${ENV} environment...\n"; conda env update -f $<) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment