You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8ea38d3
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: Makefile
+28-6Lines changed: 28 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
2
-
.PHONY: all build test tests test-unit test-integration test-at test-branch test-all typecheck clean install uninstall dev help
2
+
.PHONY: all build test tests test-unit test-integration test-at test-branch test-all typecheck clean install install-user uninstall uninstall-user dev help
3
3
4
4
BIN := roboppi
5
5
@@ -15,6 +15,12 @@ BUN_FLAGS ?=
15
15
# Extra flags passed to `bun build` (e.g. BUN_BUILD_FLAGS=--compile-exec-argv=--smol)
16
16
BUN_BUILD_FLAGS ?=
17
17
18
+
# Install locations (override like: make install PREFIX=/opt)
19
+
PREFIX ?= /usr/local
20
+
BINDIR ?= $(PREFIX)/bin
21
+
INSTALL ?= install
22
+
SUDO ?= sudo
23
+
18
24
all: build ## Build the binary (default)
19
25
20
26
build: ## Build a single binary (roboppi)
@@ -46,11 +52,27 @@ typecheck: ## Run TypeScript type checker
46
52
clean: ## Remove build artifacts
47
53
rm -f $(BIN)$(EXTRA_BINS)
48
54
49
-
install: build ## Install binary to /usr/local/bin
0 commit comments