-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
61 lines (41 loc) · 1.16 KB
/
Makefile
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
TOP_DIR=.
README=$(TOP_DIR)/README.md
VERSION=$(strip $(shell cat version))
build:
@echo "Building the software..."
init: install dep
@echo "Initializing the repo..."
travis-init: install dep
@echo "Initialize software required for travis (normally ubuntu software)"
install:
@echo "Install software required for this repo..."
dep:
@echo "Install dependencies required for this repo..."
@yarn
pre-build: install dep
@echo "Running scripts before the build..."
post-build:
@echo "Running scripts after the build is done..."
all: pre-build build post-build
test:
@echo "Running test suites..."
lint:
@echo "Linting the software..."
@yarn lint
doc:
@echo "Building the documenation..."
precommit: dep lint doc build test
travis: precommit
travis-deploy:
@echo "Deploy the software by travis"
clean:
@echo "Cleaning the build..."
watch:
@make build
@echo "Watching templates and slides changes..."
@fswatch -o packages/ | xargs -n1 -I{} make build
run:
@echo "Running the software..."
@yarn start
include .makefiles/*.mk
.PHONY: build init travis-init install dep pre-build post-build all test doc precommit travis clean watch run bump-version create-pr