Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

src/plugins/contrib/Makefile.am duplicate appdata

(1/1)

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:

--- Code: ---if BUILD_CPPCHECK
MAYBE_CPPCHECK=CppCheck appdata
endif

--- End code ---

Change each of the plugin blocks to be:


--- Code: ---if BUILD_CPPCHECK
MAYBE_CPPCHECK=CppCheck
MAYBE_APPDATA=appdata
endif

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

Is this okay?

Navigation

[0] Message Index

Go to full version