-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
63 lines (53 loc) · 1.57 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
.PHONY: whl
justbuild:
$(MAKE) -C crates/pyluwen whl
whl: justbuild
ifndef DEST_DIR
$(error DEST_DIR is undefined)
endif
ls target/wheels/pyluwen*.whl | xargs -I {} cp {} $(DEST_DIR)
.PHONY: dev-whl
dev-whl:
ifndef DEST_DIR
$(error DEST_DIR is undefined)
endif
$(MAKE) -C crates/pyluwen dev-whl
ls target/wheels/pyluwen*.whl | xargs -I {} cp {} $(DEST_DIR)
.PHONY: syseng-release
syseng-release:
$(MAKE) whl \
DEST_DIR=~/work/syseng/src/t6ifc/t6py/packages/whl \
PYTHON=python3.7
.PHONY: flash-release
flash-release:
$(MAKE) whl \
DEST_DIR=~/work/tt-flash/pyluwen/whl \
PYTHON=python3.7
.PHONY: tools-common-release
tools-common-release:
$(MAKE) whl \
DEST_DIR=~/tt-tools-common/pyluwen/whl \
PYTHON=python3.7
.PHONY: deb
deb:
@if ! cargo --list | grep -q '^\s*deb\s*$$'; then \
echo "Error: cargo-deb is not installed. Please install it using 'cargo install --locked cargo-deb'."; \
exit 1; \
fi
cargo deb -p luwencpp --target x86_64-unknown-linux-gnu -v
# sudo dpkg -i ./target/x86_64-unknown-linux-gnu/debian/luwencpp_0.1.0-1_amd64.deb
.PHONY: rpm
rpm:
$(MAKE) -C crates/luwencpp rpm
.PHONY: upload-ci-docker
upload-ci-docker:
docker login yyz-gitlab.local.tenstorrent.com:5005 -u drosen -p ${CONTAINER_ACCESS_TOKEN}
docker build -t yyz-gitlab.local.tenstorrent.com:5005/syseng-platform/luwen/rust-ci-build -f ci/dockerfiles/Dockerfile ci/dockerfiles
docker push yyz-gitlab.local.tenstorrent.com:5005/syseng-platform/luwen/rust-ci-build
clean:
rm -rf \
target \
Cargo.lock
.PHONY: pyluwen-pyi
pyluwen-pyi:
$(MAKE) -C crates/pyluwen build-pyi