Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: AndrewCot on February 19, 2022, 02:08:54 AM

Title: src/plugins/contrib/Makefile.am duplicate appdata
Post by: AndrewCot on February 19, 2022, 02:08:54 AM
In src/plugins/contrib/Makefile.am when multiple plugins are enabled then the resulting SUBDIRS variable will include multiple appdata directory entries, which will slow the build down.


Instead of having the block for each appropriate plugin:

if BUILD_CPPCHECK
MAYBE_CPPCHECK=CppCheck appdata
endif


Change each of the plugin blocks to be:


if BUILD_CPPCHECK
MAYBE_CPPCHECK=CppCheck
MAYBE_APPDATA=appdata
endif

and also add $(MAYBE_APPDATA) to SUBDIRS
This way only one appdata will be added to SUBDIRS instead of multiple.

Is this okay?