forked from aws-samples/cdk-eks-blueprints-patterns
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (30 loc) · 638 Bytes
/
Makefile
File metadata and controls
41 lines (30 loc) · 638 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
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
# Libraries
TSC := node node_modules/.bin/tsc --skipLibCheck
ESLINT := node node_modules/.bin/eslint
CDK := node node_modules/.bin/cdk
# Dependecies
HOMEBREW_LIBS := nvm typescript argocd
deps: bootstrap
npm install
lint:
$(ESLINT) . --ext .js,.jsx,.ts,.tsx
build:
rm -rf dist && $(TSC)
list:
$(CDK) list
mkdocs:
mkdocs serve
synth:
$(CDK) synth
bootstrap:
@for LIB in $(HOMEBREW_LIBS) ; do \
LIB=$$LIB make check-lib ; \
done
check-lib:
ifeq ($(shell brew ls --versions $(LIB)),)
@echo Installing $(LIB) via Hombrew
@brew install $(LIB)
else
@echo $(LIB) is already installed, skipping.
endif