-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathmakefile
60 lines (47 loc) · 1.91 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
ifdef CI_COMMIT_REF_NAME
BRANCH_OR_TAG := $(CI_COMMIT_REF_NAME)
else
BRANCH_OR_TAG := develop
endif
VERSION := $(shell git rev-parse --short HEAD)
GOLDFLAGS += -X 'github.com/elboletaire/manga-downloader/cmd.Version=$(VERSION)'
GOLDFLAGS += -X 'github.com/elboletaire/manga-downloader/cmd.Tag=$(BRANCH_OR_TAG)'
GOFLAGS = -ldflags="$(GOLDFLAGS)"
RICHGO := $(shell command -v richgo 2> /dev/null)
clean:
@rm -fv ./manga-downloader* *.cbz
install:
go mod download
build: clean test build/unix
build/all: clean test build/unix build/win
build/unix:
CGO_ENABLED=0 go build -o manga-downloader ${GOFLAGS} .
build/win:
GOOS=windows go build -o manga-downloader.exe ${GOFLAGS} .
test:
ifdef RICHGO
richgo test -v ./...
else
go test -v ./...
endif
grabber: grabber/inmanga grabber/mangadex grabber/tcb grabber/html
grabber/inmanga:
go run . https://inmanga.com/ver/manga/One-Piece/dfc7ecb5-e9b3-4aa5-a61b-a498993cd935 1
grabber/mangadex:
go run . https://mangadex.org/title/a1c7c817-4e59-43b7-9365-09675a149a6f/one-piece --language es 1-4 --bundle
grabber/tcb:
go run . https://www.tcbscans.net/manga/one-piece/ 5
go run . https://ww1.tcbscans.org/manga/ao-ashi/ 203
go run . https://lscomic.com/manga/peerless-dad/ 285
grabber/html:
go run . https://tcbscans.com/mangas/5/one-piece 1100
go run . https://mangakakalot.com/manga/vd921334 7
go run . https://ww7.mangakakalot.tv/chapter/manga-hj984766/chapter-86 86
go run . https://ww5.manganelo.tv/manga/manga-aa951409 3
go run . https://asuratoon.com/manga/0435219386-return-of-the-sss-class-ranker/ 85
go run . https://mangajar.pro/manga/haite-kudasai-takamine-san 43
go run . https://chapmanganato.com/manga-aa951409 50
go run . https://readmangabat.com/read-ov357862 23
go run . https://h.mangabat.com/read-tc397521 5
go run . https://mangapanda.in/manga/dragon-ball-super-color-%E2%AD%90%E2%AD%90%E2%AD%90%E2%AD%90%E2%AD%90 90
go run . https://mangamonks.com/manga/mashle 155