-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
29 lines (25 loc) · 1 KB
/
makefile
File metadata and controls
29 lines (25 loc) · 1 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
.PHONY: build help clean install
help:
@echo "|==========================================================|"
@echo "| lpack makefile |"
@echo "|==========================================================|"
@echo "| Run 'make build' to build. |"
@echo "| Run 'make install' to install |"
@echo "| Run 'make clean' to remove caches and build. |"
@echo "|----------------------------------------------------------|"
@echo "| Run 'make build install' . (one-line command) |"
@echo "|==========================================================|"
build:
@echo "Building..."
@cargo build --release
@mkdir -p target/output
@echo "Build successful."
clean:
@echo "Cleaning..."
@rm -rf target
@rm -rf lpack
@echo "Cleaning successful."
install:
@echo "Installing... (sudo needed)"
@./target/release/lpack build .
@sudo ./target/release/lpack install lpack/build/lpack-1.0-beta.lpk --system-wide