Skip to content

Commit 28835a8

Browse files
committed
build: remove rules for installing OpenCC data in Makefile
1 parent ca9a8ab commit 28835a8

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

Makefile

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ mainDir=app/src/main
66
resDir=$(mainDir)/res
77
jniDir=$(mainDir)/jni
88

9-
.PHONY: all clean build debug spotlessCheck spotlessApply clang-format-lint clang-format style-lint style-apply release install opencc-data translate ndk android
9+
.PHONY: all clean build debug spotlessCheck spotlessApply clang-format-lint clang-format style-lint style-apply release install translate ndk android
1010

1111
all: release
1212

@@ -56,7 +56,7 @@ cliff:
5656
git-cliff -o CHANGELOG.md
5757

5858
TRANSLATE=$(resDir)/values-zh-rCN/strings.xml
59-
release: opencc-data style-lint
59+
release: style-lint
6060
./gradlew assembleRelease
6161

6262
install: release
@@ -69,20 +69,6 @@ $(TRANSLATE): $(resDir)/values-zh-rTW/strings.xml
6969

7070
translate: $(TRANSLATE)
7171

72-
opencc-data: srcDir = $(jniDir)/OpenCC/data
73-
opencc-data: targetDir = $(mainDir)/assets/shared/opencc
74-
opencc-data:
75-
@echo "copy opencc data"
76-
@rm -rf $(targetDir)
77-
@mkdir -p $(targetDir)
78-
@cp $(srcDir)/dictionary/*.txt $(targetDir)/
79-
@cp $(srcDir)/config/*.json $(targetDir)/
80-
@rm $(targetDir)/TWPhrases*.txt
81-
@python $(srcDir)/scripts/merge.py $(srcDir)/dictionary/TWPhrases*.txt $(targetDir)/TWPhrases.txt
82-
@python $(srcDir)/scripts/reverse.py $(targetDir)/TWPhrases.txt $(targetDir)/TWPhrasesRev.txt
83-
@python $(srcDir)/scripts/reverse.py $(srcDir)/dictionary/TWVariants.txt $(targetDir)/TWVariantsRev.txt
84-
@python $(srcDir)/scripts/reverse.py $(srcDir)/dictionary/HKVariants.txt $(targetDir)/HKVariantsRev.txt
85-
8672
ndk:
8773
(cd $(mainDir); ndk-build)
8874

0 commit comments

Comments
 (0)