16 lines
622 B
Makefile
16 lines
622 B
Makefile
install: build
|
|
install -D -m 0755 --target-directory="${HOME}/.local/bin" has_internet
|
|
install -D -m 0755 --target-directory="${HOME}/.local/bin" target/release/Hentai add_and_download_url.sh download_website.sh
|
|
install -D -m 0755 --target-directory="${HOME}/.config" Hentai.conf
|
|
|
|
build:
|
|
gcc --std gnu23 -o has_internet has_internet.c
|
|
strip has_internet
|
|
cargo build --release
|
|
strip target/release/Hentai
|
|
|
|
uninstall:
|
|
rm -f "${HOME}"/.local/bin/has_internet
|
|
rm -f "${HOME}"/.local/bin/Hentai "${HOME}"/.local/bin/add_and_download_url.sh "${HOME}"/.local/bin/download_website.sh
|
|
rm -f "${HOME}"/.config/Hentai.conf
|