forked from coldnight/twqq
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
2 changed files
with
31 additions
and
8 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,36 @@ | ||
PACKAGE = windmvc/ | ||
DOCPATH = doc | ||
PYTHONBIN = python | ||
|
||
help: | ||
@echo "Please use \`make <target>' where <target> is one of" | ||
@echo " doc to generate document from source code" | ||
@echo " html to generate html from document" | ||
@echo " htmldoc to generate html document from srouce code" | ||
@echo " dist to upload package to pypi server" | ||
@echo " clean to clean temp file" | ||
|
||
|
||
doc: | ||
rm -rf docs/* | ||
sphinx-apidoc -F -o $(DOCPATH) $(PACKAGE) | ||
|
||
html: | ||
$(PYTHONBIN) setup.py install | ||
cd docs && make html && cd .. | ||
|
||
htmldoc: | ||
$(PYTHONBIN) setup.py install | ||
rm -rf docs/* | ||
sphinx-apidoc -F -o $(DOCPATH) $(PACKAGE) | ||
cd docs && make html && cd .. | ||
|
||
dist: | ||
$(PYTHONBIN) setup.py register sdist upload && rm -rf *.egg_info build dist | ||
|
||
clean: | ||
find ./ -name '*.py[co]' -exec rm -f {} \; | ||
rm -f check.jpg wait lock | ||
rm -rf *.egg-info build/ dist/ | ||
|
||
restart: | ||
kill `cat pid.pid`; python webqq.py && tail -f log.log | ||
|
||
stop: | ||
kill `cat pid.pid` | ||
|
||
start: | ||
python webqq.py |
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 |
---|---|---|
|
@@ -155,7 +155,7 @@ def unlock(self): | |
|
||
|
||
def clean(self): | ||
""" 清楚锁住和等待装袋 | ||
""" 清除锁住和等待状态 | ||
""" | ||
self.unlock() | ||
self.unwait() | ||
|