-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
220da96
commit 2284a4b
Showing
4 changed files
with
274,407 additions
and
274,383 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
all: dicts.go dicts wasm | ||
|
||
dicts.go: OpenCC-src | ||
go test -v | ||
|
||
dicts: OpenCC-src | ||
(cd dicts && go test -v) | ||
|
||
OpenCC-src: | ||
mkdir OpenCC-src && curl -Ls https://github.com/BYVoid/OpenCC/archive/ver.1.1.6.tar.gz | tar --strip-components 1 -C OpenCC-src -xvzf - && (cd OpenCC-src && npm install) | ||
mkdir OpenCC-src && curl -Ls https://github.com/BYVoid/OpenCC/archive/ver.1.1.7.tar.gz | tar --strip-components 1 -C OpenCC-src -xvzf - && (cd OpenCC-src && npm install) | ||
|
||
wasm: | ||
(cd wasm && GOOS=js GOARCH=wasm go build -v -o opencc.wasm) | ||
|
||
clean: | ||
rm -rf OpenCC-src | ||
|
||
.PHONY: dicts wasm |
Oops, something went wrong.