mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12:00 -06:00
Better installing via make
This commit is contained in:
parent
54d424e787
commit
49e387e72b
2 changed files with 5 additions and 4 deletions
7
Makefile
7
Makefile
|
|
@ -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 .
|
||||||
|
|
|
||||||
|
|
@ -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`
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue