forked from novoid/Memacs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (39 loc) · 1.27 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
# note: This file is just for development purposes
all: clean quiettest whitespace todo pep8
whitespace:
@echo "removing trailing whitespaces"
@find . -name "*.py" -exec remove-trailing-whitespace.py {} \;
test:
@nosetests
quiettest:
@nosetests >/dev/null 2>&1 || echo "!!!!!!!!!!!! \n nosetests has errors\n!!!!!!!!!!!!\n"
todo:
@echo "TODO:"
@grep -Hnr TODO * | grep -v Makefile | grep -v ".pyc" | grep -v ".py~" | grep ".py" | grep -v "tmp" || echo
pep8:
@echo "pep8:"
@find . -name "*.py" -exec pep8 {} \; | grep -v "tmp" || echo
pylint:
@echo "pylint:"
@find . -name "*.py" -exec pylint {} \; | grep -v "tmp" || echo
exec:
@echo "executing all crontab entries"
@crontab -l | grep . | grep -v "#" | cut -d '*' -f6- | /bin/sh
clean:
@find -name "*.pyc" -exec rm {} \;
@find -name "*~" -exec rm {} \;
@find -name "#*" -exec rm {} \;
@find -name ".#*" -exec rm {} \;
@rm -rf core
@rm -rf MANIFEST build/ dist
countorgmodeentries:
@echo "number of orgmode-entries in ~/orgmode/memacs/*.org_archive:"
@grep -Hnr "\*\*" ~/orgmode/memacs/*.org_archive | wc
upload:
python setup.py sdist upload
pipcheckouttest:
mkdir -p /tmp/memacs-test
virtualenv /tmp/memacs-test --no-site-packages
source /tmp/memacs-test/bin/activate
pip install memacs
deactivate