forked from florath/rmtoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
82 lines (68 loc) · 2.29 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
.PHONY: all
.PHONY: all_html
all: artifacts/requirements.pdf artifacts/req-graph1.png \
artifacts/req-graph2.png all_html
# Adding new files (especially requirements) can not automatically
# handled. The 'force' target tries to handle this.
.PHONY: force
force:
rm artifacts/.rmtoo_dependencies
${MAKE} all
#
# This is the way the rmtoo must be called.
#
CONFIG_FILE=file://doc/Config1.json
CALL_RMTOO=./bin/rmtoo -m . -j ${CONFIG_FILE}
#
# Dependency handling
# The file .rmtoo_dependencies is created by rmtoo itself.
#
include artifacts/.rmtoo_dependencies
all_html: ${OUTPUT_HTML}
# And how to make the dependencies
artifacts/.rmtoo_dependencies:
./bin/rmtoo -m . -j ${CONFIG_FILE} \
--create-makefile-dependencies=artifacts/.rmtoo_dependencies
artifacts/req-graph1.png: artifacts/req-graph1.dot
unflatten -l 23 artifacts/req-graph1.dot | \
dot -Tpng -o artifacts/req-graph1.png
artifacts/req-graph2.png: artifacts/req-graph2.dot
dot -Tpng -o artifacts/req-graph2.png artifacts/req-graph2.dot
# Two calls are needed: one for the requirments converting and one for
# backlog creation.
artifacts/requirements.pdf: ${REQS_LATEX2} doc/latex2/requirements.tex
(cd artifacts && \
gnuplot ../contrib/gnuplot_stats_reqs_cnt.inc && \
epstopdf stats_reqs_cnt.eps)
(cd artifacts && \
gnuplot ../contrib/gnuplot_stats_burndown.inc && \
epstopdf stats_burndown.eps)
(cd artifacts && pdflatex ../doc/latex2/requirements.tex; \
pdflatex ../doc/latex2/requirements.tex; \
pdflatex ../doc/latex2/requirements.tex)
.PHONY: clean
clean:
rm -f artifacts/req-graph1.png artifacts/req-graph2.png \
artifacts/reqtopics.tex artifacts/reqspricing.ods \
artifacts/req-graph1.dot artifacts/req-graph2.dot \
artifacts/requirements.aux artifacts/requirements.dvi \
artifacts/requirements.log artifacts/requirements.out \
artifacts/requirements.pdf artifacts/requirements.toc \
add_data.py*
rm -fr debian/rmtoo build
PYSETUP = python setup.py
.PHONY: install
install:
$(PYSETUP) install --prefix=${DESTDIR}/usr \
--install-scripts=${DESTDIR}/usr/bin
.PHONY: tests
tests:
nosetests -w rmtoo -v --with-coverage -s \
--testmatch ".*[tT]est.*" \
--cover-package=rmtoo.lib,rmtoo.output,rmtoo.inputs
.PHONY: deb
deb:
debuild -I -Imake_latex.log
.PHONY: last_test
last_test:
nosetests -w rmtoo -v -s $${TC}