-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (24 loc) · 849 Bytes
/
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
# GNU Makefile
CODE_BITS=ircstats DictDB.py UserStats.py UserTable.py validate_yaml user_merges InputColloquyIRC.py wikistats EasyIO.py
DIST_BITS=$(CODE_BITS) CREDITS COPYING README Makefile INSTALL FAQ.txt TODO.txt
DIST_TARGET=dist_dir
LINT_OPTS=--max-line-length=120
help:
@echo "check: check python files for errors"
@echo "checkall: check python files for errors, warnings, or style problems"
@echo "dist: copy important files only to a sub directory for easy packaging"
@echo "clean: delete temporary file formats"
check:
@for codefile in $(CODE_BITS); do \
pylint ${LINT_OPTS} --errors-only $$codefile; \
done
checkall:
@for codefile in $(CODE_BITS); do \
pylint ${LINT_OPTS} $$codefile; \
done
dist: clean
@for filename in $(DIST_BITS); do \
cp -v $$filename $(DIST_TARGET); \
done
clean:
@rm -f *~ *.orig *.pyc *.bak