forked from tytso/xfstests-bld
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (40 loc) · 953 Bytes
/
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
#
# A simple makefile for xfstests-bld
#
SUBDIRS = acl \
android-compat \
attr \
dbench \
e2fsprogs-libs \
fio \
quota \
libaio \
misc \
popt \
xfsprogs-dev \
xfstests-dev
all: xfsprogs-dev xfstests-dev fio quota \
gce-xfstests.sh kvm-xfstests.sh
./build-all
xfsprogs-dev xfstests-dev fio quota:
./get-all
gce-xfstests.sh: kvm-xfstests/gce-xfstests.in
sed -e "s;@DIR@;$$(pwd);" < $< > $@
chmod +x $@
kvm-xfstests.sh: kvm-xfstests/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
make -C xfsprogs-dev realclean
rm -rf bld xfstests
rm -f kvm-xfstests/util/zerofree gce-xfstests.sh kvm-xfstests.sh
kvm-xfstests/util/zerofree: kvm-xfstests/util/zerofree.c
cc -static -o $@ $< -lext2fs -lcom_err -lpthread
realclean: clean
rm -rf xfsprogs-dev xfstests-dev fio quota *.ver
tarball:
./gen-tarball