forked from MetOffice/lfric_core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
55 lines (47 loc) · 1.92 KB
/
Makefile
File metadata and controls
55 lines (47 loc) · 1.92 KB
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
##############################################################################
# (c) Crown copyright 2017 Met Office. All rights reserved.
# The file LICENCE, distributed with this code, contains details of the terms
# under which the code may be used.
##############################################################################
# LFRic project make file. This simply calls down into sub-project make files.
#
# Variables:
# OPERATE_ON - Sub-projects which will be affected by operations.
#
#############################################################################
# Operate only on this list of sub-projects. May be overridden from the
# terminal.
#
OPERATE_ON ?= infrastructure \
components/science \
components/driver \
components/lfric-xios \
components/inventory \
components/coupling \
mesh_tools \
applications/skeleton \
applications/simple_diffusion \
applications/lbc_demo \
applications/io_demo
export SUITE_GROUP ?= developer
export SUITE_GROUP_NAME ?= $(notdir $(realpath $(shell pwd)))-.*
##############################################################################
# Perform default action on each sub-project in OPERATE_ON list.
#
.PHONY: default
default: $(addprefix default/,$(OPERATE_ON))
$(Q)echo >/dev/null
.PHONY: default/%
default/%: ALWAYS
$(Q)$(MAKE) $(QUIET_ARG) -C $*
##############################################################################
# Perform the clean action on each sub-project in OPERATE_ON list.
#
.PHONY: clean
clean: $(addprefix clean/,$(OPERATE_ON))
$(Q)echo >/dev/null
.PHONY: clean/%
clean/%: ALWAYS
$(Q)$(MAKE) $(QUIET_ARG) -C $* clean
##############################################################################
include infrastructure/build/lfric.mk