forked from RHESSys/RHESSys
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmakefile
44 lines (39 loc) · 826 Bytes
/
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
########################################
#
# RHESSys master makefile
#
# This file will build, install, and clean rhessys and all associated tools
#
########################################
DIRS = \
rhessys \
g2w \
cf
default:
@dir_list='$(DIRS)'; \
current_dir=`pwd`; \
for dir in $$dir_list; do \
cd $$current_dir/$$dir; \
$(MAKE) -$(MAKEFLAGS); \
done
install:
@dir_list='$(DIRS)'; \
current_dir=`pwd`; \
for dir in $$dir_list; do \
cd $$current_dir/$$dir; \
$(MAKE) -$(MAKEFLAGS) install; \
done
clean:
@dir_list='$(DIRS)'; \
current_dir=`pwd`; \
for dir in $$dir_list; do \
cd $$current_dir/$$dir; \
$(MAKE) -$(MAKEFLAGS) clean; \
done
clobber:
@dir_list='$(DIRS)'; \
current_dir=`pwd`; \
for dir in $$dir_list; do \
cd $$current_dir/$$dir; \
$(MAKE) -$(MAKEFLAGS) clobber; \
done