-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
42 lines (27 loc) · 770 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
33
34
35
36
37
38
39
40
41
42
#
# Makefile to rule domino-problem solution build, execution and analysis
#
# Binaries path
PYTHON := $(shell which python3.5)
GNUPLOT := $(shell which gnuplot)
EOG := $(shell which eog)
NOSETESTS := $(shell which nosetests)
help:
@echo "Dominó problem"
@echo
@echo "Target rules:"
@echo " compute - Computes execution times for implemented algorithms"
@echo " plot - Run GnuPlot to generate the computation analysis"
@echo " show - Open resulted image using eog"
@echo " test - Run tests using nose"
@echo " clean - Removes log and image files"
compute: compute.py
$(PYTHON) $^
plot: analysis.plt
$(GNUPLOT) $^
show: time-complexity-analysis.png
$(EOG) $^
test:
$(NOSETESTS) --verbose
clean:
@rm -rvf *.log *.png