You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Commit a01bf6b removed the core MMSP includes as dependencies from the example Makefiles. This was erroneous in most cases: as a result of this commit, running make will not rebuild the binaries when the MMSP includes change, only when the example code changes. Proper usage defines a core variable containing the external files necessary to build an up-to-date binary, and including those files on the dependency line.
To clarify, using one of the anisotropic vector-valued grain growth codes as an example:
Protip: $< denotes the first prerequisite, which in this example is graingrowth.cpp, not the whole slew of dependencies. The first item is critical, but order makes no difference for the remainder.
The text was updated successfully, but these errors were encountered:
Commit a01bf6b removed the core MMSP includes as dependencies from the example
Makefile
s. This was erroneous in most cases: as a result of this commit, runningmake
will not rebuild the binaries when the MMSP includes change, only when the example code changes. Proper usage defines acore
variable containing the external files necessary to build an up-to-date binary, and including those files on the dependency line.To clarify, using one of the anisotropic vector-valued grain growth codes as an example:
Current Makefile
graingrowth: graingrowth.cpp $(compiler) $(flags) $< -o $@ -lz
Former Makefile
Correct Makefile
Protip:
$<
denotes the first prerequisite, which in this example isgraingrowth.cpp
, not the whole slew of dependencies. The first item is critical, but order makes no difference for the remainder.The text was updated successfully, but these errors were encountered: