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
285285# ----
286286# Cleanup
287287
288- .PHONY : clean
288+ .PHONY : clean Clean
289+ Clean : clean
290+ $(MAKE ) -C ../shared/fms BUILD=$(abspath $(FMS_BUILD ) ) clean
289291clean :
290292 $(MAKE ) -C ../shared/AM2 BUILD=$(abspath $(AM2_BUILD ) ) clean
291293 $(MAKE ) -C ../shared/LM3 BUILD=$(abspath $(LM3_BUILD ) ) clean
Original file line number Diff line number Diff line change @@ -39,7 +39,11 @@ EXCLUDE ?= \
3939EXTRA_SRC_DIRS := \
4040 $(abspath ../src/SIS2/src) \
4141 $(abspath ../src/SIS2/config_src/external) \
42- $(abspath ../src/coupler)
42+ $(or $(abspath ../src/coupler/full) \
43+ $(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.
4347
4448CONFIG_FLAGS := --config-cache
4549CONFIG_FLAGS += --srcdir=$(abspath $(MOM_CODEBASE ) )
@@ -281,7 +285,9 @@ $(TESTDIR)/%/test: $(BUILD)/coupler_main
281285# ----
282286# Cleanup
283287
284- .PHONY : clean
288+ .PHONY : clean Clean
289+ Clean : clean
290+ $(MAKE ) -C ../shared/fms BUILD=$(abspath $(FMS_BUILD ) ) clean
285291clean :
286292 $(MAKE ) -C ../shared/atmos_null BUILD=$(abspath $(ATMOS_BUILD ) ) clean
287293 $(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
265265# Cleanup
266266
267267# I probably need a rule in Makefile.in for all the autoconf stuff.
268- .PHONY : clean
268+ .PHONY : clean Clean
269+ Clean : clean
270+ $(MAKE ) -C ../shared/fms BUILD=$(abspath $(FMS_BUILD ) ) clean
269271clean :
270272 rm -rf $(BUILD )
271273
You can’t perform that action at this time.
0 commit comments