Skip to content

Commit

Permalink
fix(Makefile): add ant release and install targets
Browse files Browse the repository at this point in the history
  • Loading branch information
osfans committed Jan 3, 2017
1 parent fbf3c2c commit 084dcdd
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

all: apk javadoc linux win32

release: apk win32
release:
ant release

install: apk
install: release
ant install

icon: icon.svg
Expand All @@ -21,14 +22,6 @@ icon: icon.svg
inkscape -z -e res/drawable-hdpi/status.png -w 36 -h 36 icon.svg
inkscape -z -e res/drawable-mdpi/status.png -w 24 -h 24 icon.svg

apk: resDir = res/values-zh-rCN
apk: opencc-data ndk
@mkdir -p $(resDir)
@opencc -c tw2sp -i res/values/strings.xml -o $(resDir)/strings.xml
@grep -v "translatable=\"false\"" $(resDir)/strings.xml > $(resDir)/strings.xml.bak
@mv $(resDir)/strings.xml.bak $(resDir)/strings.xml
ant release

opencc-data:
@echo "copy opencc data:"
@rm -rf assets/rime/opencc
Expand All @@ -41,6 +34,14 @@ opencc-data:
python jni/OpenCC/data/scripts/reverse.py jni/OpenCC/data/dictionary/TWVariants.txt assets/rime/opencc/TWVariantsRev.txt
python jni/OpenCC/data/scripts/reverse.py jni/OpenCC/data/dictionary/HKVariants.txt assets/rime/opencc/HKVariantsRev.txt

apk: resDir = res/values-zh-rCN
apk: opencc-data ndk
@mkdir -p $(resDir)
@opencc -c tw2sp -i res/values/strings.xml -o $(resDir)/strings.xml
@grep -v "translatable=\"false\"" $(resDir)/strings.xml > $(resDir)/strings.xml.bak
@mv $(resDir)/strings.xml.bak $(resDir)/strings.xml
ant release

javadoc:
ant javadoc
@echo "convert javadoc by opencc:"
Expand Down

1 comment on commit 084dcdd

@osfans
Copy link
Owner Author

@osfans osfans commented on 084dcdd Jan 3, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Bambooin 添加了release和install。只修改java时,建议用这两个。

Please sign in to comment.