forked from evilpete/ISYlib-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
74 lines (52 loc) · 1.49 KB
/
Copy pathMakefile
File metadata and controls
74 lines (52 loc) · 1.49 KB
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
PEP8=pep8
#PEP8ARG=--ignore=E101,E128,E201,E202,E203,E211,E302,E303,W191,E501
PEP8ARG=--ignore=E203
REPO=git@github.com:evilpete/ISYlib-python.git
PROGS=
PLIB=./ISY.py
GIT=git
all:
echo "Be more exact"
t: style
FILES= ISY/IsyClass.py ISY/IsyExceptionClass.py ISY/IsyNodeClass.py ISY/IsyProgramClass.py ISY/IsyUtilClass.py ISY/IsyVarClass.py ISY/IsyDiscover.py ISY/IsyEventData.py ISY/IsyEvent.py ISY/_isyclimate.py ISY/_isynode.py ISY/_isyvar.py ISY/_isynet_resources.py ISY/__init__.py
BINFILES= bin/isy_find.py bin/isy_nodes.py bin/isy_log.py bin/isy_progs.py bin/isy_showevents.py bin/isy_var.py bin/isy_nestset.py bin/isy_net_wol.py bin/isy_net_res.py bin/isy_web.py
README.txt: ${FILES}
pydoc ISY > README.txt
git commit --message "file GENERATED by pydoc" README.txt
syntax:
for targ in ${FILES} ; do \
python $$targ ; \
done
for targ in ${BINFILES} ; do \
echo $$targ ; \
python -m py_compile $$targ ; \
done
style: syntax
${PEP8} ${PEP8ARG} ${FILES}
list: ${FILES}
for targ in ${FILES} ; do \
echo $$targ ; \
egrep -h '^ *class |^ *def |^ ##|^def ' $$targ ;\
done
doc:
pydoc ${FILES}
lint:
pylint -d W0312,C0111,C0301,C0103 ${FILES}
clean:
rm bin/*.pyc ISY/*.pyc
checkin: commit push
commit: README.txt
${GIT} commit -a
diff:
${GIT} diff
status:
${GIT} status
push:
${GIT} push
pull:
${GIT} pull
setup: setup.py README.txt
python setup.py sdist
git commit --message "file GENERATED by distutils" MANIFEST
${PLBS}:
@echo ${GIT} pull