-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (33 loc) · 1.37 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
#!/usr/bin/env make
APP=disassembler.py
OPTIONS=--test --dict 0
LOGS=logs
OPEN=open
GITHUB_URL=https://github.com/jamesaustin/disassembler
PYTHON=python
all:
@-mkdir -p $(LOGS)
@$(PYTHON) $(APP) $(OPTIONS) > $(LOGS)/test.1.txt
@diff $(LOGS)/test.txt $(LOGS)/test.1.txt | tee $(LOGS)/diff.1.txt
@$(PYTHON) $(APP) $(OPTIONS) --counts > $(LOGS)/test.1.counts.txt
@diff $(LOGS)/test.counts.txt $(LOGS)/test.1.counts.txt | tee $(LOGS)/diff.1.counts.txt
@$(PYTHON) $(APP) $(OPTIONS) --paths > $(LOGS)/test.1.paths.txt
@diff $(LOGS)/test.paths.txt $(LOGS)/test.1.paths.txt | tee $(LOGS)/diff.1.paths.txt
@$(PYTHON) $(APP) $(OPTIONS) --all --counts --paths > $(LOGS)/test.1.all.txt
@diff $(LOGS)/test.all.txt $(LOGS)/test.1.all.txt | tee $(LOGS)/diff.1.all.txt
@$(PYTHON) $(APP) $(OPTIONS) --style keys > $(LOGS)/test.1.keys.txt
@diff $(LOGS)/test.keys.txt $(LOGS)/test.1.keys.txt | tee $(LOGS)/diff.1.keys.txt
base:
@-mkdir -p $(LOGS)
@$(PYTHON) $(APP) $(OPTIONS) > $(LOGS)/test.txt
@$(PYTHON) $(APP) $(OPTIONS) --counts > $(LOGS)/test.counts.txt
@$(PYTHON) $(APP) $(OPTIONS) --paths > $(LOGS)/test.paths.txt
@$(PYTHON) $(APP) $(OPTIONS) --all --counts --paths > $(LOGS)/test.all.txt
@$(PYTHON) $(APP) $(OPTIONS) --style keys > $(LOGS)/test.keys.txt
check:
@pylint --rcfile .pylintrc $(APP) | tee $(LOGS)/pylint.txt
edit:
@$(EDITOR) .
github:
@$(OPEN) $(GITHUB_URL)
-include make/*.mk