[refactor] Makefile & build instructions updated

main
Shinyzenith 2 years ago
parent fc70c44684
commit 7692dd48d1
No known key found for this signature in database
GPG Key ID: 6DD485917B553B7B

@ -2,14 +2,16 @@ 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
@cp ./target/x86_64-unknown-linux-musl/release/swhkd /usr/local/bin/swhkd
@mv ./bin/swhkd /usr/local/bin/swhkd
@chmod +x /usr/local/bin/swhkd
uninstall:
@ -24,6 +26,7 @@ check:
clean:
@cargo clean
@rm ./bin/*
setup:
@rustup install stable

@ -5,7 +5,8 @@
1) Clone this repo.
2) Install rustup using your package manager of choice.
3) `make setup`
4)
4) `make clean`
5)
1) `make` for a musl compile.
2) `make glibc` for a glibc compile.
5) `sudo make install`
6) `sudo make install`

Loading…
Cancel
Save