-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
executable file
·33 lines (28 loc) · 946 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
32
#!/usr/bin/env make
# Similar is intended to always be a submodule for projects that use it.
HOME=..
BANNER=python $(HOME)/Banner/Banner.py -b -t "wr!"
all:
@clear
@$(BANNER) "$(MODULE): all"
@echo "######################### Similar.py ##############################"
@echo "Similar uses multiple algorithms to detect similarities between"
@echo "poorly typed data-entry data and their canonical intended values."
@echo ""
@echo "It improved one of my client's canonicalization rate from"
@echo "under 20 percent to over 70 percent"
@echo ""
@echo "It is not demonstrated here."
@echo "TODO: make lint and fix warnings."
./Similar.py
.PHONY: clean
clean:
@$(BANNER) "$(MODULE): clean"
rm -f PASS/1.csv FAIL/1.csv Similar.log Good.csv Fail.csv
rm -f *.pep8 *.pyflakes *.pylint
.PHONY: lint
lint: Similar.py
@$(BANNER) "$(MODULE): lint"
@-pep8 $< > $<.pep8 2>&1
@-pylint $< > $<.pylint 2>&1
@-pyflakes $< > $<.pyflakes 2>&1