-
Notifications
You must be signed in to change notification settings - Fork 25
/
Makefile.$make
64 lines (49 loc) · 2.18 KB
/
Makefile.$make
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
#*****************************************************************************
# $Id: Makefile.$make 62 2009-03-19 06:58:44Z naohisa.sakamoto $
#*****************************************************************************
#=============================================================================
# Include.
#=============================================================================
include kvs.conf
include Makefile.def
#=============================================================================
# INCLUDE_PATH, LIBRARY_PATH, LINK_LIBRARY, INSTALL_DIR.
#=============================================================================
INCLUDE_PATH :=
LIBRARY_PATH :=
LINK_LIBRARY :=
INSTALL_DIR := $(KVS_DIR)
#=============================================================================
# Sub directory.
#=============================================================================
SUBDIRS := Source Tool
#=============================================================================
# build.
#=============================================================================
build:
for i in $(SUBDIRS); do \
$(MAKE) -C $$i $(MFLAGS) $(MAKEOVERRIDES) build; done
#=============================================================================
# clean.
#=============================================================================
clean:
for i in $(SUBDIRS); do \
$(MAKE) -C $$i $(MFLAGS) $(MAKEOVERRIDES) clean; done
#=============================================================================
# install.
#=============================================================================
install:
$(MKDIR) $(INSTALL_DIR)
$(INSTALL) kvs.conf $(INSTALL_DIR)
$(INSTALL) Makefile.def $(INSTALL_DIR)
for i in $(SUBDIRS); do \
$(MAKE) -C $$i $(MFLAGS) $(MAKEOVERRIDES) install; done
#=============================================================================
# uninstall.
#=============================================================================
uninstall:
$(RMDIR) $(INSTALL_DIR)
#=============================================================================
# reinstall.
#=============================================================================
reinstall: uninstall install