forked from tytso/xfstests-bld
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
61 lines (49 loc) · 1.04 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
#
# A simple makefile for xfstests-bld
#
REPOS = fio \
keyutils \
fsverity \
quota \
stress-ng \
util-linux \
xfsprogs-dev \
xfstests-dev \
go/src/github.com/google/syzkaller
SUBDIRS = acl \
android-compat \
attr \
dbench \
e2fsprogs-libs \
libaio \
misc \
popt \
$(REPOS)
SCRIPTS = android-xfstests.sh \
gce-xfstests.sh \
kvm-xfstests.sh
all: $(SCRIPTS)
./get-all
./build-all
all-clean-first: $(SCRIPTS)
./get-all
rm -rf bld xfstests *.ver
./build-all --clean-first
$(SCRIPTS): %.sh: kvm-xfstests/%.in
sed -e "s;@DIR@;$$(pwd);" < $< > $@
chmod +x $@
clean:
for i in $(SUBDIRS) ; \
do \
if test -f $$i/Makefile ; then make -C $$i clean ; fi ; \
done
if test -d xfsprogs-dev; then make -C xfsprogs-dev realclean; fi
rm -rf bld xfstests build-distro
rm -f kvm-xfstests/util/zerofree $(SCRIPTS)
kvm-xfstests/util/zerofree: kvm-xfstests/util/zerofree.c
cc -static -o $@ $< -lext2fs -lcom_err -lpthread
realclean: clean
rm -rf $(REPOS) *.ver go
tarball:
./gen-tarball
.PHONY: all clean realclean tarball