Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
coldnight committed Nov 18, 2013
1 parent 8127d03 commit daf6039
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 8 deletions.
37 changes: 30 additions & 7 deletions Makefile
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
2 changes: 1 addition & 1 deletion twqq/hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def unlock(self):


def clean(self):
""" 清楚锁住和等待装袋
""" 清除锁住和等待状态
"""
self.unlock()
self.unwait()
Expand Down

0 comments on commit daf6039

Please sign in to comment.