forked from NVIDIA/OpenShell
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (25 loc) · 767 Bytes
/
Copy pathMakefile
File metadata and controls
31 lines (25 loc) · 767 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
.PHONY: install test cli abi clean
CARGO ?= cargo
PIP ?= pip3
NPM ?= npm
install: abi cli
$(PIP) install --user -e ./python 2>/dev/null || true
$(NPM) install -g . 2>/dev/null || true
@echo ""
@echo "✓ OpenConstruct installed!"
@echo " Run 'openconstruct init' to get started."
test:
$(CARGO) test --workspace
@echo "✓ All tests passed"
cli:
$(CARGO) build --release -p openconstruct-cli
@echo "✓ CLI built at target/release/openconstruct"
abi:
$(CARGO) build --release -p openconstruct-abi 2>/dev/null || \
$(CARGO) build --release 2>/dev/null || \
echo "⚠ ABI build skipped — some crates may not be available yet"
@echo "✓ ABI build complete"
clean:
$(CARGO) clean
rm -rf build/ dist/ *.egg-info node_modules/
@echo "✓ Clean"