-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathMakefile
119 lines (84 loc) · 2.16 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# Makefile for Yuma entire project
#
# very top directory
##################### LIBRARIES ########################
#
# DIRS:
#
# This is an ordered list
# Put only the directories that build object files in the list
DIRS =
ifndef DEVELOPER
DIRS += libtecla
endif # DEVELOPER
# DIRS == all netconf dirs
DIRS += netconf
ifndef NOTOASTER
DIRS += libtoaster
endif
# building yuma-doc ignores DIRS, uses DOCDIRS instead
DOCDIRS = netconf/doc
#################### PLATFORM DEFINITIONS ############
all: yumaall
################################ MAKE RULES #################################
#
clean: yumaclean
superclean: yumasuperclean
distclean: yumadistclean
install: yumainstall
ifdef DOC
# yuma-doc package
# nothing to make at this time, just install
yumaall: yuma-doc
yumainstall: yuma-doc-install
else
ifdef DEVELOPER
# yuma-dev package
yumaall: yuma-dev
yumainstall: yuma-all-install
else
# yuma package or normal build
yumaall: yuma-all
yumainstall: yuma-all-install
endif # DEVELOPER
endif # DOC
libtecla/Makefile:
cd libtecla && ./configure
yuma-all: libtecla/Makefile
for dir in $(DIRS); do\
cd $$dir && $(MAKE) && cd ..;\
done
yuma-dev:
for dir in $(DIRS); do\
cd $$dir && $(MAKE) && cd ..;\
done
yumaclean: libtecla/Makefile
for dir in $(DIRS); do\
cd $$dir && $(MAKE) clean && cd ..;\
done
yumasuperclean: libtecla/Makefile
for dir in $(DIRS); do\
cd $$dir && $(MAKE) superclean && cd ..;\
done
yumadistclean: libtecla/Makefile
for dir in $(DIRS); do\
cd $$dir && $(MAKE) distclean && cd ..;\
done
yuma-all-install:
for dir in $(DIRS); do\
cd $$dir && $(MAKE) install && cd ..;\
done
yuma-doc:
for dir in $(DOCDIRS); do\
cd $$dir && $(MAKE) && cd ..;\
done
yuma-doc-install:
for dir in $(DOCDIRS); do\
cd $$dir && $(MAKE) install && cd ..;\
done
.PHONY: all clean superclean distclean install yuma-dev \
yumaall yumaclean yumasuperclean yumadistclean yumainstall \
yuma-all yuma-all-install yuma-doc yuma-doc-install
# prevent the make program from choking on all the symbols
# that get generated from autogenerated make rules
.NOEXPORT: