News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

src/plugins/contrib/Makefile.am duplicate appdata

Started by AndrewCot, February 19, 2022, 02:08:54 AM

Previous topic - Next topic

AndrewCot

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?