-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (25 loc) · 750 Bytes
/
Makefile
File metadata and controls
30 lines (25 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
MAKEFLAGS += --warn-undefined-variables
SHELL := sh
.SHELLFLAGS := -eu -o pipefail -c
.DEFAULT_GOAL := help
.PHONY: help clean
## display this help
help:
@ echo 'Usage: make <target>'
@ echo
@ echo 'Available targets are:'
@ awk '/^[[:alnum:]]+([\.\-_][[:alnum:]]*)*:/ { \
if (match(line, /^## (.*)/)) { printf " %s,%s\n", substr($$1, 0, index($$1, ":")-1), substr(line, RSTART + 3, RLENGTH); } \
} { line = $$0 }' $(MAKEFILE_LIST) | sort | column -t -s,
@ echo
deps:
### $@
command -v docker
command -v sam
command -v tree
docker pull lambci/lambda:build-python3.7
docker pull lambci/lambda:python3.7
## clean up
clean:
### $@
find . -mindepth 2 -maxdepth 2 -name Makefile -exec dirname {} \; | xargs -r -I{} make -C {} $@