File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -285,7 +285,9 @@ $(TESTDIR)/%/test: $(BUILD)/coupler_main
285
285
# ----
286
286
# Cleanup
287
287
288
- .PHONY : clean
288
+ .PHONY : clean clean.fms
289
+ clean.fms : clean
290
+ $(MAKE ) -C ../shared/fms BUILD=$(abspath $(FMS_BUILD ) ) clean
289
291
clean :
290
292
$(MAKE ) -C ../shared/AM2 BUILD=$(abspath $(AM2_BUILD ) ) clean
291
293
$(MAKE ) -C ../shared/LM3 BUILD=$(abspath $(LM3_BUILD ) ) clean
Original file line number Diff line number Diff line change @@ -39,7 +39,11 @@ EXCLUDE ?= \
39
39
EXTRA_SRC_DIRS := \
40
40
$(abspath ../src/SIS2/src) \
41
41
$(abspath ../src/SIS2/config_src/external) \
42
- $(abspath ../src/coupler)
42
+ $(or $(wildcard $(abspath ../src/coupler/full) ) \
43
+ $(wildcard $(abspath ../src/coupler/shared) ) , \
44
+ $(abspath ../src/coupler) )
45
+ # The above $(or ...) covers the transition from FMS1-era to FMS2-era versions
46
+ # of the coupler. The latter has multiple versions of the main coupler.
43
47
44
48
CONFIG_FLAGS := --config-cache
45
49
CONFIG_FLAGS += --srcdir=$(abspath $(MOM_CODEBASE ) )
@@ -281,7 +285,9 @@ $(TESTDIR)/%/test: $(BUILD)/coupler_main
281
285
# ----
282
286
# Cleanup
283
287
284
- .PHONY : clean
288
+ .PHONY : clean clean.fms
289
+ clean.fms : clean
290
+ $(MAKE ) -C ../shared/fms BUILD=$(abspath $(FMS_BUILD ) ) clean
285
291
clean :
286
292
$(MAKE ) -C ../shared/atmos_null BUILD=$(abspath $(ATMOS_BUILD ) ) clean
287
293
$(MAKE ) -C ../shared/land_null BUILD=$(abspath $(LAND_BUILD ) ) clean
Original file line number Diff line number Diff line change @@ -265,7 +265,9 @@ $(TESTDIR)/%/test: $(BUILD)/MOM6
265
265
# Cleanup
266
266
267
267
# I probably need a rule in Makefile.in for all the autoconf stuff.
268
- .PHONY : clean
268
+ .PHONY : clean clean.fms
269
+ clean.fms : clean
270
+ $(MAKE ) -C ../shared/fms BUILD=$(abspath $(FMS_BUILD ) ) clean
269
271
clean :
270
272
rm -rf $(BUILD )
271
273
You can’t perform that action at this time.
0 commit comments