-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
73 lines (58 loc) · 1.57 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
# Makefile for top level of lmbench
# $Id: Makefile 1.17 00/05/31 16:16:15+03:00 staelin@hpli8.hpli.hpl.hp.com $
# Possible things to $(MAKE):
#
# build (default) go to the source directory and build the benchmark
# results go to the source directory and build and run the benchmark
# rerun run the benchmark again
# see see the results that came with this release
# Go to the results directory and read the Makefile.
# doc.lpr print the documentation
# doc.x preview the documentation (needs X, groff, pic, etc)
# clean go to the subdirs and $(MAKE) clean
# get $(MAKE) sure all files are checked out
# shar build a shippable shar archive
SHELL=/bin/sh
build:
cd src && $(MAKE)
results: FRC
cd src && $(MAKE) results
rerun:
cd src && $(MAKE) rerun
see:
cd results && $(MAKE) summary percent 2>/dev/null | more
doc.lpr:
cd doc && $(MAKE) PS && lpr *.PS
doc.x:
cd doc && $(MAKE) x
clobber clean:
for i in doc src results scripts; do \
echo ===== $$i =====; \
(cd $$i && $(MAKE) clean); \
done
/bin/rm -rf bin/*
-bk clean
get:
for i in doc src results scripts; do \
echo ===== $$i =====; \
(cd $$i && bk get -q); \
done
@co -q
info:
for i in doc src results scripts; do \
echo ===== $$i =====; \
(cd $$i && info); \
done
release: scripts/mkrelease
scripts/mkrelease
scripts/mkrelease:
cd scripts && co mkrelease
# XXX - . must be named lmbench for this to work
shar:
$(MAKE) clean
co -q Makefile
$(MAKE) get
cd .. && \
find lmbench -type f -print | egrep -v 'noship|RCS' > /tmp/FILES
cd .. && shar -S -a -n lmbench1.0 -L 50K < /tmp/FILES
FRC: