Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tab needed after dependency declaration #124

Open
benheartland opened this issue Sep 22, 2021 · 0 comments
Open

Tab needed after dependency declaration #124

benheartland opened this issue Sep 22, 2021 · 0 comments

Comments

@benheartland
Copy link

https://github.com/moddevices/mod-plugin-builder/blob/9356796dbf026c09aa77b4ff3f435a1672794b26/plugins/package/eg-amp-lv2-labs/source/Makefile#L24

If you're adapting this makefile for use with your own plugins, be aware that you might need to insert an extra line after the first plugin build rule, containing only a single tab character:

myplugin: myplugin.lv2/myplugin$(LIB_EXT) myplugin.lv2/manifest.ttl
[TAB NEEDED HERE]

myplugin.lv2/myplugin$(LIB_EXT): myplugin.c
	$(CC) $^ $(BUILD_C_FLAGS) $(LINK_FLAGS) -lm $(SHARED) -o $@

This tab tells make that the dependency line of the rule is over and what follows is the action line (in this case containing no actions) to be followed when those dependencies change. Without the tab, make sometimes seems to "run on" and tries to interpret the next rule as if it were part of the first one (at least in my environment, YMMV).

For some reason, this particular makefile seems to work without the tab but it does seem to be necessary in general.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant