forked from yasound/double-metaphone
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathMakefile
78 lines (62 loc) · 1.37 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
PROJ := metaphone
LIB := $(PROJ)
GITHUB_REPO := github.com:oubiwann/$(PROJ).git
PKG_NAME := $(PROJ)
TMP_FILE ?= /tmp/MSG
VIRT_DIR ?= .venv
PYTHON_BIN ?= /System/Library/Frameworks/Python.framework/Versions/2.7/bin
PYTHON ?= $(PYTHON_BIN)/python2.7
log-concise:
git log --oneline
log-verbose:
git log --format=fuller
log-authors:
git log --format='%aN %aE' --date=short
log-authors-date:
git log --format='%ad %aN %aE' --date=short
log-changes:
git log --format='%ad %n* %B %N%n' --date=short
clean:
find ./ -name "*~" -exec rm {} \;
find ./ -name "*.pyc" -exec rm {} \;
find ./ -name "*.pyo" -exec rm {} \;
find . -name "*.sw[op]" -exec rm {} \;
rm -rf _trial_temp/ build/ dist/ MANIFEST \
CHECK_THIS_BEFORE_UPLOAD.txt *.egg-info
push:
git push --all git@$(GITHUB_REPO)
push-tags:
git push --tags git@$(GITHUB_REPO)
push-all: push push-tags
.PHONY: push-all
stat:
@echo
@echo "### Git info ###"
@echo
git info
echo
@echo "### Git working branch status ###"
@echo
@git status -s
@echo
@echo "### Git branches ###"
@echo
@git branch
@echo
status: stat
.PHONY: status
todo:
git grep -n -i -2 XXX
git grep -n -i -2 TODO
.PHONY: todo
build:
$(PYTHON) setup.py build
$(PYTHON) setup.py sdist
check: clean build
trial $(LIB)
-pep8 $(LIB)
-pyflakes $(LIB)
register:
$(PYTHON) setup.py register
upload: check
$(PYTHON) setup.py sdist upload --show-response