Skip to content

If a deep dependency fails with "no way to make", only a direct dependency of the main goal is mentioned #80

@rulatir

Description

@rulatir

Makefile:

foo: bar
	cp $< > $@

bar: vex
	cp $< > $@

vex: irk
	cp $< > $@

irk: baz
	cp $< > $@

baz: naz.in # typo, should be baz.in (what matters is that naz.in doesn't exist)
	cp $< > $@

GNU Make output:

make: *** No rule to make target 'naz.in', needed by 'baz'.  Stop.

biomake -H output:

While building foo: No way to build bar, needed by foo

The error message only mentions a cascade-failing direct dependency of the main goal instead of pointing at the real error like GNU Make does.

The problem can be worked around by attempting to make the failing dependency to discover the next node on the failing path, and so on until the culprit is found. But this workaround shouldn't be necessary.

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