You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
687 B
37 lines
687 B
all: build
|
|
|
|
build:
|
|
@cargo build --release --target=x86_64-unknown-linux-musl
|
|
@cp ./target/x86_64-unknown-linux-musl/release/swhkd ./bin/swhkd
|
|
|
|
glibc:
|
|
@cargo clean
|
|
@cargo build --release
|
|
@cp ./target/release/swhkd ./bin/swhkd
|
|
|
|
install:
|
|
@mkdir -p /usr/local/bin
|
|
@mv ./bin/swhkd /usr/local/bin/swhkd
|
|
@chmod +x /usr/local/bin/swhkd
|
|
|
|
uninstall:
|
|
@rm /usr/local/bin/swhkd
|
|
|
|
run:
|
|
@cargo run --target=x86_64-unknown-linux-musl
|
|
|
|
check:
|
|
@cargo fmt
|
|
@cargo check --target=x86_64-unknown-linux-musl
|
|
|
|
clean:
|
|
@cargo clean
|
|
|
|
setup:
|
|
@mkdir bin
|
|
@rustup install stable
|
|
@rustup default stable
|
|
@rustup target add x86_64-unknown-linux-musl
|
|
|
|
.PHONY: check clean setup all run install build glibc
|