-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (31 loc) · 1.12 KB
/
Makefile
File metadata and controls
38 lines (31 loc) · 1.12 KB
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
.PHONY: help install build test clean binaries dist
help:
@echo "Pilot Protocol Node.js SDK - Makefile"
@echo ""
@echo "Available targets:"
@echo " make install - Install dependencies"
@echo " make build - Compile TypeScript to dist/"
@echo " make binaries - Build Go binaries (daemon, pilotctl, gateway, libpilot)"
@echo " make test - Run tests"
@echo " make dist - Full build: binaries + TypeScript + pack"
@echo " make clean - Remove build artifacts and node_modules"
@echo ""
install:
npm install
build:
npm run build
binaries:
./scripts/build-binaries.sh
test:
npm test
dist: binaries build
npm pack
clean:
rm -rf dist/ node_modules/ bin/ *.tgz
# Per-platform sub-package bin/ trees (populated by build-binaries.sh
# for local dev, by the publish workflow in CI). Wipe the contents but
# keep the per-platform package.json files in place.
find packages -mindepth 2 -maxdepth 3 -type f \
\( -name 'pilot-*' -o -name 'pilotctl' -o -name 'libpilot.*' \) \
-delete 2>/dev/null || true
find packages -mindepth 2 -maxdepth 3 -type d -name bin -empty -delete 2>/dev/null || true