-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (45 loc) · 1.26 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
# PHONY are targets with no files to check, all in our case
.DEFAULT_GOAL := help
include .env
# Extract the recommender version
VERSION=$(shell cat ${PKG_NAME}/version)
BUILD=$(shell date)
#########################################################################################
################# MISC ##################################################################
#########################################################################################
# Display the current version
help:
@echo ${PKG_NAME} v$(VERSION)
@echo "Usage: make {build, bash, ...}"
@echo "Please check README.md for instructions"
@echo ""
# Build the project
.PHONY: add_build
add_build:
echo ${BUILD} > ${PKG_NAME}/build
# Build the project
.PHONY: build
build: add_build build_wheel build_docker
# Run the project
.PHONY: run
run:
docker compose down
docker compose up ${ENV} -d
# Build the project's wheels
.PHONY: build_wheel
build_wheel:
# Build the wheels
@mkdir -p dist/legacy;
@mv dist/*.whl dist/legacy/ || true; \
pip install build && python -m build --wheel;
rsbuild clean
# Build the docker image
.PHONY: build_docker
build_docker:
# Build the wheels
docker compose build
# Build launch and connect
.PHONY: all
all:
docker compose up -d
docker exec -it zakuro bash