forked from ChuckBuilds/LEDMatrix
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (22 loc) · 857 Bytes
/
Makefile
File metadata and controls
28 lines (22 loc) · 857 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
# LEDMatrix Makefile
# Provides install/remove targets for the matrix CLI tool.
PREFIX ?= /usr/local
BINDIR := $(PREFIX)/bin
CLI_SRC := $(CURDIR)/scripts/matrix_cli.py
.PHONY: install-matrix remove-matrix frontend-dev help
help:
@echo "Usage:"
@echo " sudo make install-matrix Install the matrix CLI to $(BINDIR)/matrix"
@echo " sudo make remove-matrix Remove the matrix CLI from $(BINDIR)/matrix"
@echo " make frontend-dev Start FastAPI + Angular dev servers"
install-matrix:
@echo "Installing matrix CLI -> $(BINDIR)/matrix"
chmod +x "$(CLI_SRC)"
ln -sf "$(CLI_SRC)" "$(BINDIR)/matrix"
@echo "Done. Run 'matrix --help' to verify."
remove-matrix:
@echo "Removing matrix CLI from $(BINDIR)/matrix"
rm -f "$(BINDIR)/matrix"
@echo "Done. matrix CLI has been removed."
frontend-dev:
bash scripts/dev/run_frontend_dev.sh