2023-02-25 22:45:59 -06:00
|
|
|
PREFIX := /usr/local
|
|
|
|
PKGNAME := movie-rename
|
|
|
|
|
|
|
|
build:
|
|
|
|
cargo build --release
|
|
|
|
|
|
|
|
build-debug:
|
|
|
|
cargo build
|
|
|
|
|
|
|
|
clean:
|
|
|
|
cargo clean
|
|
|
|
|
|
|
|
install: build
|
|
|
|
install -Dm755 target/release/$(PKGNAME) "$(DESTDIR)$(PREFIX)/bin/$(PKGNAME)"
|
|
|
|
install -Dm644 $(PKGNAME).1 "$(DESTDIR)$(PREFIX)/man/man1/$(PKGNAME).1"
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
rm -f "$(DESTDIR)$(PREFIX)/bin/$(PKGNAME)"
|
|
|
|
rm -f "$(DESTDIR)$(PREFIX)/man/man1/$(PKGNAME).1"
|
|
|
|
|
2023-02-26 14:07:04 -06:00
|
|
|
aur: build
|
2024-03-06 15:41:45 -06:00
|
|
|
tar --transform 's/.*\///g' -czf $(PKGNAME).tar.gz target/release/$(PKGNAME) target/autocomplete/* $(PKGNAME).1
|
2023-02-26 14:07:04 -06:00
|
|
|
|
2023-02-26 02:27:28 -06:00
|
|
|
.PHONY: build build-debug install clean uninstall aur
|