forked from euanwm/OpenWeightlifting
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (29 loc) · 831 Bytes
/
Copy pathMakefile
File metadata and controls
35 lines (29 loc) · 831 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
# OpenWeightlifting Makefile
# Shortcuts to the most common tools should be implemented here.
# Builds the backend server executable
.PHONY: build_backend
build_backend:
cp -r event_data/ backend/event_data/
cd backend && go build -o backend
# Builds the frontend files
.PHONY: build_frontend
build_frontend:
@cd scripts && pipenv install && pipenv run python3 fe_builder.py
cd frontend && npm install
.PHONY: check_db
DB ?= ""
check_db:
@cd scripts && pipenv run python3 check_db.py $(DB)
.PHONY: generate-docs
generate-docs:
echo "Generating docs..."
cd backend && swag init --parseDependency --parseInternal
# Removes build files.
.PHONY: clean
clean:
rm -f backend/backend
rm -rf backend/event_data
# Removes build files plus cached dependencies.
.PHONY: veryclean
veryclean: clean
rm -rf frontend/node_modules