Better installing via make

This commit is contained in:
bytedream 2021-10-19 01:20:40 +02:00
parent 54d424e787
commit 49e387e72b
2 changed files with 5 additions and 4 deletions

View file

@ -10,15 +10,16 @@ build:
mv cmd/crunchyroll-go/$(BINARY_NAME) . mv cmd/crunchyroll-go/$(BINARY_NAME) .
install: install:
cd cmd/crunchyroll-go && go build -o crunchyroll-go install -Dm755 $(BINARY_NAME) $(DESTDIR)$(PREFIX)/bin/crunchyroll-go
install -Dm755 cmd/crunchyroll-go/crunchyroll-go $(DESTDIR)$(PREFIX)/bin/crunchyroll-go cp $(DESTDIR)$(PREFIX)/bin/crunchyroll-go $(DESTDIR)$(PREFIX)/bin/crunchy
install -Dm755 cmd/crunchyroll-go/crunchyroll-go $(DESTDIR)$(PREFIX)/bin/crunchy
install -Dm644 crunchyroll-go.1 $(DESTDIR)$(PREFIX)/share/man/man1/crunchyroll-go.1 install -Dm644 crunchyroll-go.1 $(DESTDIR)$(PREFIX)/share/man/man1/crunchyroll-go.1
install -Dm644 LICENSE $(DESTDIR)$(PREFIX)/share/licenses/crunchyroll-go/LICENSE
uninstall: uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/crunchyroll-go rm -f $(DESTDIR)$(PREFIX)/bin/crunchyroll-go
rm -f $(DESTDIR)$(PREFIX)/bin/crunchy rm -f $(DESTDIR)$(PREFIX)/bin/crunchy
rm -f $(DESTDIR)$(PREFIX)/share/man/man1/crunchyroll-go.1 rm -f $(DESTDIR)$(PREFIX)/share/man/man1/crunchyroll-go.1
rm -f $(DESTDIR)$(PREFIX)/share/licenses/crunchyroll-go/LICENSE
test: test:
go test -v . go test -v .

View file

@ -50,7 +50,7 @@ A [Go](https://golang.org) library & cli for the undocumented [crunchyroll](http
``` ```
$ git clone https://github.com/ByteDream/crunchyroll-go $ git clone https://github.com/ByteDream/crunchyroll-go
$ cd crunchyroll-go $ cd crunchyroll-go
$ make $ make && sudo make install
``` ```
- use `go` - use `go`
``` ```