diff --git a/configure/RULES_BUILD b/configure/RULES_BUILD index 9b8cbf094..daaae86f6 100644 --- a/configure/RULES_BUILD +++ b/configure/RULES_BUILD @@ -83,6 +83,23 @@ endif -include $(CONFIG)/RULES.Db +#--------------------------------------------------------------- +# Do not build anything if current path matches SKIP_BUILD + +ifneq (,$(strip $(SKIP_BUILDS))) +CURRENT_MODULE=$(subst $(realpath $(TOP)/..)/,,$(subst $(realpath $(dir $(lastword $(MAKEFILE_LIST)))..)/,,$(realpath ..))) +ifneq ($(filter $(SKIP_BUILDS) $(addsuffix /%,$(SKIP_BUILDS)),$(CURRENT_MODULE)),) +$(info Skipping $(CURRENT_MODULE) for $(T_A)) +PROD= +TESTPROD= +LIBRARY= +TESTLIBRARY= +LOADABLE_LIBRARY= +TESTS= +SRC_FILES= +endif +endif + #--------------------------------------------------------------- # Include defines and rules for prod, library and test* targets diff --git a/documentation/RELEASE_NOTES.html b/documentation/RELEASE_NOTES.html index c60ab9575..6e1a3f3a4 100644 --- a/documentation/RELEASE_NOTES.html +++ b/documentation/RELEASE_NOTES.html @@ -18,6 +18,15 @@ --> +
Any module can be skipped during the build for a given architecture by setting
+the variable SKIP_BUILDS to a list of patterns matching the
+module directories to skip. For example to skip building any pvAccess related
+modules set SKIP_BUILDS=pv% normativeTypes in the
+CONFIG.Common.<arch> file for that architecture.
+
The four separate Git branches core/master, libcom/master, @@ -28,7 +37,6 @@ more than one of these modules. The layout of the source files has not changed at all however, so the source code for libcom, ca and the database are still found separately under the module subdirectory.
-