blob: a87e06412b21ccd8b8af57119acb40ff0ea6b6d2 (
plain)
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
|
HERE := $(shell pwd)
PACKAGE := rteval
VERSION := $(shell awk '/Version:/ { print $$2 }' ${PACKAGE}.spec | head -n 1)
D := 10
PYSRC := rteval/rteval.py \
rteval/cyclictest.py \
rteval/dmi.py \
rteval/hackbench.py \
rteval/__init__.py \
rteval/kcompile.py \
rteval/load.py \
rteval/rtevalclient.py \
rteval/rtevalConfig.py \
rteval/rtevalMailer.py \
rteval/xmlout.py
XSLSRC := rteval/rteval_dmi.xsl \
rteval/rteval_text.xsl
CONFSRC := rteval/rteval.conf
runit:
[ -d ./run ] || mkdir run
python rteval/rteval.py -D -v --workdir=./run --loaddir=./loadsource --duration=$(D) -f ./rteval/rteval.conf -i ./rteval rteval
sysreport:
python rteval/rteval.py -v --workdir=./run --loaddir=./loadsource --duration=$(D) --sysreport
clean:
rm -f *~ rteval/*~ rteval/*.py[co] *.tar.bz2
realclean: clean
rm -rf run tarball rpm
install:
python setup.py --dry-run install
tarfile:
rm -rf tarball && mkdir -p tarball/rteval-$(VERSION)/rteval
cp $(PYSRC) tarball/rteval-$(VERSION)/rteval
cp $(XSLSRC) tarball/rteval-$(VERSION)/rteval
cp $(CONFSRC) tarball/rteval-$(VERSION)/rteval
cp -r doc/ tarball/rteval-$(VERSION)
cp Makefile setup.py rteval.spec COPYING tarball/rteval-$(VERSION)
tar -C tarball -cjvf rteval-$(VERSION).tar.bz2 rteval-$(VERSION)
rpm: tarfile
rm -rf rpm
mkdir -p rpm/{BUILD,RPMS,SRPMS,SOURCES,SPECS}
cp rteval-$(VERSION).tar.bz2 rpm/SOURCES
cp rteval.spec rpm/SPECS
cp loadsource/* rpm/SOURCES
rpmbuild -ba --define "_topdir $(HERE)/rpm" rpm/SPECS/rteval.spec
help:
@echo ""
@echo "rteval Makefile targets:"
@echo ""
@echo " runit: do a short testrun locally [default]"
@echo " rpm: run rpmbuild"
@echo " tarfile: create the source tarball"
@echo " install: install rteval locally"
@echo " clean: cleanup generated files"
@echo " sysreport: do a short testrun and generate sysreport data"
@echo ""
|