-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (20 loc) · 725 Bytes
/
Makefile
File metadata and controls
29 lines (20 loc) · 725 Bytes
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
PLUGINNAME = $(shell basename $(PWD))
VERSION = $(shell sed -n 's/version=//p' metadata.txt)
ZIPFILE = $(HOME)/$(PLUGINNAME).$(VERSION).zip
.PHONY: help pylint pep8 zip
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " pep8 check Python code with pep8"
@echo " pylint check Python code with pylint"
@cho " flake check Python code with flake8"
@echo " zip build zip package"
pep8:
@pep8 --config=pep8 *.py
pylint:
@pylint --disable=C0103,C0415,E0401,R0903,W0201 *.py
flake:
@flake8 *py
zip:
rm -f ${ZIPFILE}
cd ..; zip -9r $(ZIPFILE) $(PLUGINNAME) -x "*.git/*" "*.gitignore" "*pyc" "*__pycache__/*" "*doc/*"
@echo "Successfully zipped to" $(ZIPFILE)