-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (38 loc) · 958 Bytes
/
Makefile
File metadata and controls
51 lines (38 loc) · 958 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Top-level Makefile for CPM project
# Builds both Rust (cpm-core, cpm-cli) and TypeScript (win95-sim)
.PHONY: all build test clean rust-build rust-test ts-build ts-test packages
# Default: build everything
all: build
# Build everything
build: rust-build ts-build ts-test ts-packages
# Test everything
test: rust-test ts-test
# Rust targets
rust-build:
cargo build --release --target x86_64-unknown-linux-musl
rust-test:
cargo test --target x86_64-unknown-linux-musl
# TypeScript targets (win95-sim)
ts-%:
$(MAKE) -C win95-sim $*
# Build packages (ZIP files)
packages:
$(MAKE) -C win95-sim packages
# Clean everything
clean:
cargo clean
$(MAKE) -C win95-sim clean
# Development server (win95-sim)
dev:
$(MAKE) -C win95-sim dev
# Run the CLI
run:
cargo run --bin cpm -- $(ARGS)
# Format code
fmt:
cargo fmt
cd win95-sim && npm run format 2>/dev/null || true
# Lint
lint:
cargo clippy
cd win95-sim && npm run lint 2>/dev/null || true