Skip to content

Tab needed after dependency declaration #124

@benheartland

Description

@benheartland

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions