Skip to content

Commit 7160cd2

Browse files
build: add option to compile and extract data without running all checks
1 parent 539cd10 commit 7160cd2

4 files changed

Lines changed: 7 additions & 9 deletions

File tree

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ include $(MAKE_DIR)/subdir-deps.mk
1717
clean:
1818
@rm -rf $(BUILD_DIR_)
1919

20-
all: $(SUBDIRS) $(addsuffix -extract-data,$(SUBDIRS)) $(addsuffix -check,$(SUBDIRS))
20+
all-build: $(SUBDIRS)
21+
all-extract-data: $(addsuffix -extract-data,$(SUBDIRS))
22+
all: $(addsuffix -check,$(SUBDIRS))
2123

22-
.PHONY: all $(SUBDIRS) $(addsuffix -extract-data,$(SUBDIRS)) $(addsuffix -check,$(SUBDIRS)) $(addsuffix -install,$(SUBDIRS)) clean
24+
.PHONY: all all-build all-extract-data $(SUBDIRS) $(addsuffix -extract-data,$(SUBDIRS)) $(addsuffix -check,$(SUBDIRS)) $(addsuffix -install,$(SUBDIRS)) clean

docs/source/developing/build-system.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ The MESA build system uses ``make``, with some additional (shell) scripts. All r
88

99
Running ``make`` in the root folder will build all the modules, install relevant files, and run all the associated module tests (test suite tests will not be run). To build an individual module and all its dependencies, run ``make MODULE_NAME``. Append ``-install`` or ``-check`` to run those steps. If you don't want to try to build the dependencies, ``cd`` to the folder of that module and run ``make`` there.
1010

11+
If you don't want to run any tests, but compile all the modules and extract all the necessary data, run `make all-build all-extract-data`.
12+
1113
Build options
1214
=============
1315

docs/source/reference/env_vars.rst

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,6 @@ inlist file. This will also override the environment variable ``$MESA_INLIST``.
105105

106106
./build/bin/star some_other_inlist_file
107107

108-
``skip_test``
109-
~~~~~~~~~~~~~
110-
111-
Empty file. Similar to ``skip_build``, but this will skip the compile time tests.
112-
If placed in a sub-folder, then only the tests in that folder are skipped.
113-
114108

115109
Private
116110
-------

make/gen-folder-deps

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ${subdir}-install: ${subdir}
1717
${subdir}-check: ${subdir} ${subdir}-extract-data \$(addsuffix -extract-data,${DEPS})
1818
\$(MAKE) -C ${subdir} check BUILD_DIR=\$(BUILD_DIR)
1919
20-
${subdir}-extract-data: ${subdir}
20+
${subdir}-extract-data:
2121
\$(MAKE) -C ${subdir} extract-data BUILD_DIR=\$(BUILD_DIR)
2222
EOF
2323
done

0 commit comments

Comments
 (0)