wallhaven_dl/Makefile

22 lines
370 B
Makefile
Raw Permalink Normal View History

2023-10-17 18:33:29 +00:00
build: wallhaven_dl
wallhaven_dl: $(shell find . -name '*.go')
2024-02-25 03:11:14 +00:00
go build -o dist/ .
2023-10-17 18:33:29 +00:00
2024-02-25 03:11:14 +00:00
run: build
./dist/wallhaven_dl
2023-10-17 18:33:29 +00:00
tidy:
go mod tidy
clean:
2024-02-25 03:11:14 +00:00
rm -rf dist
2023-10-17 18:33:29 +00:00
uninstall:
rm -f /usr/bin/wallhaven_dl
2024-02-25 03:11:14 +00:00
rm -f /usr/share/zsh/site-functions/_wallhaven_dl
2023-10-17 18:33:29 +00:00
install:
2024-02-25 03:11:14 +00:00
cp ./dist/wallhaven_dl /usr/bin
cp ./completions/_wallhaven_dl /usr/share/zsh/site-functions/_wallhaven_dl