-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
19 lines (14 loc) · 917 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.DEFAULT_GOAL := help
.PHONY: all
all: clean lambda-layers/DependenciesLayer/requirements.txt
.PHONY: clean
clean: ## Delete lambda-layers/DependenciesLayer/requirements.txt
rm -rf lambda-layers/DependenciesLayer/requirements.txt
lambda-layers/DependenciesLayer/requirements.txt: Pipfile Pipfile.lock ## Update the requirements.txt file used to build this Lambda function's DependenciesLayer
pipenv requirements > lambda-layers/DependenciesLayer/requirements.txt
requirements.txt: Pipfile Pipfile.lock ## Update the requirements.txt file used to build this Lambda function's DependenciesLayer
pipenv requirements > requirements.txt
.PHONY: help
# gratuitously adapted from https://marmelab.com/blog/2016/02/29/auto-documented-makefile.html
help: ## Display this help text
@grep -E '^[-a-zA-Z0-9_/.]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%s\033[0m\n\t%s\n", $$1, $$2}'