-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathMakefile
34 lines (30 loc) · 842 Bytes
/
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
.PHONY: upgrade_main_project_dependencies_version
upgrade_main_project_dependencies_version:
go get -u ./...
.PHONY: upgrade_example_projects_dependencies_version
upgrade_example_projects_dependencies_version:
cd examples && \
for d in */ ; do \
cd $$d && \
go get -u ./... && \
go mod tidy && \
cd .. ; \
done
.PHONY: remove_all_example_projects_build_stuff
remove_all_example_projects_build_stuff:
cd examples && \
for d in * ; do \
cd $$d && \
echo $$d && \
cd .. ; \
done
.PHONY: test_all_example_projects_build
test_all_example_projects_build: remove_all_example_projects_build_stuff
cd examples && \
for d in * ; do \
cd $$d && \
go build -o $$d && \
cd .. ; \
done
.PHONY: all
all: upgrade_main_project_dependencies_version upgrade_example_projects_dependencies_version test_all_example_projects_build