I have a plugin (https://github.com/surge-synthesizer/surge-rack) which has a sub-module. If I build it using
git submodule update --init --recursive RACK_DIR=(...) make
then everything works. If I haven’t done the submodule update, it doesn’t, of course, because it doesn’t find the submodule.
But I have been trying somewhat futile-ly to make it so the submodule init is part of my DEPS. I did something glike
DEPS += surge/LICENSE
and then had a rule for surge/LICENSE which did a submodule update, but that rule fires after my C++ tries to build (and fails)
So my question is
- Is it OK if my plugin requires a submodule update before a build - like will that break the plugin manager or is that an expected step for when I submit it? and
- Assuming it is not, is there some makefile magic for a plugin I just can’t figure out which does the submodule update --init --recursive before the build starts?
Thank you for any help.