-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
64 lines (46 loc) · 1.36 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
62
63
64
TOP_DIR=.
README=$(TOP_DIR)/README.md
WHITEPAPER_DIR=src/pages/generated/whitepaper/
VERSION=$(strip $(shell cat version))
build: pre-build
@echo "Building the software..."
@cd uniswap && rm -f .env.production
@cd uniswap && sed -i -e "s#4bf032f2d38a4ed6bb975b80d6340847#ecc041a3b974472fbf2cf6ed9a2a1d3c#g" .env
@cd uniswap && yarn build
@cd uniswap && mv build ../build
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..."
@git submodule update --init
@git submodule update --remote
@npm install -g yarn
dep:
@echo "Install npm dependencies required for this repo..."
@yarn
@cd uniswap && yarn
pre-build: install dep clean
@echo "Running scripts before the build..."
all: pre-build build
test:
@echo "Running test suites..."
lint:
@echo "Linting the software..."
doc:
@echo "Building the documenation..."
precommit: dep lint doc build test
travis: precommit
clean:
@echo "Cleaning the build..."
@rm -rf build
run:
@echo "Running the software..."
@cd uniswap
@yarn start
deploy-aliyun:
@echo "Deploying to Alibaba Cloud..."
@yarn deploy-aliyun
include .makefiles/*.mk
.PHONY: build init travis-init install dep pre-build all test doc precommit travis clean watch run bump-version create-pr