OSDN Git Service

Please enter the commit message for your changes. Lines starting
[eos/base.git] / util / src / Makefile
1 include ${EOS_HOME}/src/Config/${EOS_HOST}.inc
2
3 #CLASS = \
4         Admin    \
5         AI       \
6         Database \
7         Graphics \
8         TclTk    \
9         MATH     \
10         Ruby     \
11         Parallel \
12         ImageAnalysis
13
14 CLASS = \
15         Admin    \
16         AI \
17         CUDA \
18         Database \
19         DataFormat \
20         Graphics \
21         ImageAnalysis \
22         MATH \
23         Sound \
24         TclTk 
25
26 help::
27         @echo make check
28         @echo make config
29         @echo make all
30         @echo make clean 
31         @echo make cleanAll
32
33 check:
34         @echo "---- Checking Directories ----"
35         @for class in $(CLASS);  \
36         do \
37                 echo "Checking $${class}" ; \
38                 if [ ! -d $${class} ] ;  \
39                 then \
40                         mkdir $${class}; \
41                 fi; \
42                 cd $${class}; \
43                 if [ -d ../../src/$${class}/Config ] ; \
44                 then \
45                         ln -sf ../../src/$${class}/Config; \
46                 fi ; \
47                 ln -sf ../../src/$${class}/Makefile . ; \
48                 cd ..; \
49         done
50         @for class in $(CLASS);  \
51         do \
52                 echo "Checking in $${class}"; \
53                 cd $${class};                 \
54                 $(MAKE) check ;               \
55                 cd ..; \
56         done
57
58 config: 
59         for class in $(CLASS);  \
60         do \
61                 echo "Configuration $${class}" ; \
62                 cd $${class}; \
63                 $(MAKE) config; \
64                 cd ..; \
65         done
66
67 all: 
68         for class in $(CLASS);  \
69         do \
70                 echo "Installation $${class}" ; \
71                 cd $${class}; \
72                 $(MAKE) ; \
73                 cd ..; \
74         done
75
76 clean: 
77         for class in $(CLASS);  \
78         do \
79                 echo "Cleaning $${class}" ; \
80                 cd $${class}; \
81                 $(MAKE) clean; \
82                 cd ..; \
83         done
84
85
86 cleanAll: 
87         for class in $(CLASS);  \
88         do \
89                 echo "Cleaning $${class}" ; \
90                 cd $${class}; \
91                 $(MAKE) cleanAll; \
92                 cd ..; \
93         done
94
95