-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
57 lines (47 loc) · 1.37 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
# @file Makefile
# @author Abdoulaye Samake <[email protected]>
# @date Tue May 10 10:52:04 2016
.PHONY: all contrib modules model core clean cleanmodel mrproper fresh
all: modules core contrib
@cd $(NEXTSIMDIR)/model; $(MAKE);
contrib:
@cd $(NEXTSIMDIR)/contrib/bamg/src; $(MAKE)
@cd $(NEXTSIMDIR)/contrib/mapx/src; $(MAKE)
modules:
ifdef USE_OASIS
@cd $(NEXTSIMDIR)/modules/oasis/src; $(MAKE)
endif
ifdef USE_ENSEMBLE
@cd $(NEXTSIMDIR)/modules/enkf/perturbation/src; $(MAKE)
endif
core: contrib modules
@cd $(NEXTSIMDIR)/core/src; $(MAKE)
clean: cleanmodel
@cd $(NEXTSIMDIR)/contrib/bamg/src; $(MAKE) clean
@cd $(NEXTSIMDIR)/contrib/mapx/src; $(MAKE) clean
ifdef USE_OASIS
@cd $(NEXTSIMDIR)/modules/oasis/src; $(MAKE) clean
endif
ifdef USE_ENSEMBLE
@cd $(NEXTSIMDIR)/modules/enkf/perturbation/src; $(MAKE) clean
endif
@cd $(NEXTSIMDIR)/core/src; $(MAKE) clean
cleanmodel:
@cd $(NEXTSIMDIR)/model; $(MAKE) clean;
mrproper: clean
@cd $(NEXTSIMDIR)/contrib/bamg/src; $(MAKE) mrproper
@cd $(NEXTSIMDIR)/contrib/mapx/src; $(MAKE) mrproper
ifdef USE_OASIS
@cd $(NEXTSIMDIR)/modules/oasis/src; $(MAKE) mrproper
endif
ifdef USE_ENSEMBLE
@cd $(NEXTSIMDIR)/modules/enkf/perturbation/src; $(MAKE) mrproper
endif
@cd $(NEXTSIMDIR)/core/src; $(MAKE) mrproper
@cd $(NEXTSIMDIR)/model; $(MAKE) mrproper
rm -rf objs
rm -rf lib
rm -rf .deps
fresh:
$(MAKE) mrproper
$(MAKE) all