-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
51 lines (34 loc) · 1.03 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
#
# TokuFS
#
DEFAULT_BUILD_SUBDIRS = src
ALL_BUILD_SUBDIRS = src tests benchmark fuse utils
CLEAN_SUBDIRS = src tests benchmark sandbox fuse utils
.PHONY: all check install uninstall reinstall rebuild default tags clean
default: $(patsubst %, %.makesubdir, $(DEFAULT_BUILD_SUBDIRS));
bdb:
$(MAKE) default BDB=1
all: $(patsubst %, %.makesubdir, $(ALL_BUILD_SUBDIRS))
syntax: $(patsubst %, %.makesubdir.syntax, $(ALL_BUILD_SUBDIRS))
PREFIX=/home/ftfs/local/
check: default
$(MAKE) -j8 -s -k -C src/tests check
$(MAKE) -j8 -s -k -C tests check
install: default
/bin/cp lib/libtokufs.so $(PREFIX)/lib
/bin/cp include/tokufs.h $(PREFIX)/include
uninstall:
rm -f $(PREFIX)/lib/libtokufs.so
rm -f $(PREFIX)/include/tokufs.h
reinstall: uninstall rebuild install
rebuild: clean default
tags:
ctags src/*.[ch] include/*.h include/*/*.h benchmark/*.[ch]
%.makesubdir:
@$(MAKE) -C $*
%.makesubdir.syntax:
@$(MAKE) -C $* syntax
clean: $(patsubst %, %.cleansubdir, $(CLEAN_SUBDIRS))
rm -rf tags TAGS
%.cleansubdir:
@$(MAKE) -C $* clean