-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
53 lines (40 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
BUILDDIR=build
#install dir
PREFIX ?= /usr/local
all: dirs pdwfslibc tools
dirs:
mkdir -p $(BUILDDIR)
pdwfslibc: pdwfsgo
make -C src/c
pdwfsgo:
make -C src/go
.PHONY: tools
tools: tools/pdwfs
mkdir -p $(BUILDDIR)/bin
install tools/pdwfs $(BUILDDIR)/bin/
install tools/pdwfs-slurm $(BUILDDIR)/bin/
install tools/redis.srun $(BUILDDIR)/bin/
install tools/pdwfs-local $(BUILDDIR)/bin/
#cd tools/pv && ./configure && make # if pv needs rebuild
install tools/pv/pv $(BUILDDIR)/bin/
test: tools pdwfslibc
make -C src/go test
make -C src/c test
clean:
rm -rf $(BUILDDIR)
rm -rf dist
install: pdwfslibc
install -d $(PREFIX)/lib $(PREFIX)/bin
install $(BUILDDIR)/lib/libpdwfs_go.so $(PREFIX)/lib
install $(BUILDDIR)/lib/pdwfs.so $(PREFIX)/lib
install tools/pdwfs $(PREFIX)/bin
install tools/pdwfs-slurm $(PREFIX)/bin
install tools/redis.srun $(PREFIX)/bin
install tools/pdwfs-local $(PREFIX)/bin
chmod +x $(PREFIX)/bin/*
tag:
git tag -a $(TAG) -m "Version $(TAG)"
dist:
tools/create_tarballs.sh
bench:
make -C examples/docker/ior bench