blob: 6018defeb2ca2964c0c5bd58bc03b2f1a2f78bd7 (
plain) (
blame)
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
83
84
85
86
|
#!/usr/bin/make
#
# root - make
#
# Makefile
#
# By Siddharth Ravikumar <sravik@bgsu.edu>
#
# No rights reserved. Dedicated to Public Domain.
# <https://creativecommons.org/publicdomain/zero/1.0/>
F_ALLOC = fallocate
F_ALLOC_OPT = -l
BLOB_DIR = blobs/
# blobs
20MB = $(BLOB_DIR)20MB.blob
30MB = $(BLOB_DIR)30MB.blob
40MB = $(BLOB_DIR)40MB.blob
50MB = $(BLOB_DIR)50MB.blob
60MB = $(BLOB_DIR)60MB.blob
70MB = $(BLOB_DIR)70MB.blob
80MB = $(BLOB_DIR)80MB.blob
90MB = $(BLOB_DIR)90MB.blob
100MB = $(BLOB_DIR)100MB.blob
ALL_BLOBS = $(20MB) $(30MB) $(40MB) $(50MB) $(60MB) $(70MB) \
$(80MB) $(90MB) $(100MB)
all:
@echo "Give me something to make."
blobs: $(ALL_BLOBS)
$(BLOB_DIR):
@mkdir -p $(BLOB_DIR)
$(20MB): $(BLOB_DIR)
$(F_ALLOC) $(F_ALLOC_OPT) 20MiB $(20MB)
$(30MB): $(BLOB_DIR)
$(F_ALLOC) $(F_ALLOC_OPT) 30MiB $(30MB)
$(40MB): $(BLOB_DIR)
$(F_ALLOC) $(F_ALLOC_OPT) 40MiB $(40MB)
$(50MB): $(BLOB_DIR)
$(F_ALLOC) $(F_ALLOC_OPT) 50MiB $(50MB)
$(60MB): $(BLOB_DIR)
$(F_ALLOC) $(F_ALLOC_OPT) 60MiB $(60MB)
$(70MB): $(BLOB_DIR)
$(F_ALLOC) $(F_ALLOC_OPT) 70MiB $(70MB)
$(80MB): $(BLOB_DIR)
$(F_ALLOC) $(F_ALLOC_OPT) 80MiB $(80MB)
$(90MB): $(BLOB_DIR)
$(F_ALLOC) $(F_ALLOC_OPT) 90MiB $(90MB)
$(100MB): $(BLOB_DIR)
$(F_ALLOC) $(F_ALLOC_OPT) 100MiB $(100MB)
report:
@$(MAKE) -C report
report-clean:
@find report/ -name '*.aux' -exec rm -f {} +
@find report/ -name '*.dvi' -exec rm -f {} +
@find report/ -name '*.lof' -exec rm -f {} +
@find report/ -name '*.log' -exec rm -f {} +
@find report/ -name '*.lot' -exec rm -f {} +
@find report/ -name '*.toc' -exec rm -f {} +
@find report/ -name '*.bbl' -exec rm -f {} +
@find report/ -name '*.blg' -exec rm -f {} +
blobs-clean:
@rm -f $(ALL_BLOBS)
@rmdir $(BLOB_DIR)
.PHONY: blobs blobs-clean report report-clean
|