-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (41 loc) · 1.05 KB
/
Makefile
File metadata and controls
50 lines (41 loc) · 1.05 KB
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
.PHONY: install build test setup-monorepo update-monorepo setup-golang-sdk update-golang-sdk setup-references update-references
install:
mvn install
build:
mvn compile package
test:
mvn test
##
# Monorepo
#
setup-monorepo:
mkdir -p monorepo
if [ ! -d "monorepo/.git" ]; then \
git clone git@github.com:featurevisor/featurevisor.git monorepo; \
else \
(cd monorepo && git fetch origin main && git checkout main && git pull origin main); \
fi
make update-monorepo
update-monorepo:
(cd monorepo && git pull origin main && make install && make build)
##
# Golang SDK
#
setup-golang-sdk:
mkdir -p featurevisor-go
if [ ! -d "featurevisor-go/.git" ]; then \
git clone git@github.com:featurevisor/featurevisor-go.git featurevisor-go; \
else \
(cd featurevisor-go && git fetch origin main && git checkout main && git pull origin main); \
fi
update-golang-sdk:
(cd featurevisor-go && git pull origin main)
##
# All references
#
setup-references:
make setup-monorepo
make setup-golang-sdk
update-references:
make update-monorepo
make update-golang-sdk