Skip to content

Commit b54c923

Browse files
committed
add Makefile
1 parent 0cdc286 commit b54c923

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

Diff for: Makefile

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Makefile for Java Wechaty
2+
#
3+
# GitHb: https://github.com/wechaty/java-wechaty
4+
# Author: Huan LI <[email protected]> github.com/huan
5+
#
6+
7+
.PHONY: all
8+
all: install bot
9+
10+
.PHONY: install
11+
install:
12+
echo "maven install ?"
13+
14+
.PHONY: test
15+
test:
16+
echo "maven test ?"
17+
18+
.PHONY: bot
19+
bot:
20+
java examples/ding-dong-bot.java
21+
22+
.PHONY: version
23+
version:
24+
@newVersion=$$(awk -F. '{print $$1"."$$2"."$$3+1}' < VERSION) \
25+
&& echo $${newVersion} > VERSION \
26+
&& git add VERSION \
27+
&& git commit -m "$${newVersion}" > /dev/null \
28+
&& git tag "v$${newVersion}" \
29+
&& echo "Bumped version to $${newVersion}"

Diff for: README.md

+9
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,15 @@ class Bot{
5555
}
5656
```
5757

58+
## Development
59+
60+
To be writen:
61+
62+
```sh
63+
make install
64+
make bot
65+
```
66+
5867
## Java Wechaty Developing Plan
5968

6069
We already have Wechaty in TypeScript, It will be not too hard to translate the TypeScript(TS) to Java because [wechaty](https://github.com/wechaty/wechaty) has only 3,000 lines of the TS code, they are well designed and de-coupled by the [wechaty-puppet](https://github.com/wechaty/wechaty-puppet/) abstraction. So after we have translated those 3,000 lines of TypeScript code, we will almost be done.

0 commit comments

Comments
 (0)