Skip to content

.FORCE targets or :force: dependencies #104

Description

@cspiel

Currently, i.e. as of version 0.10.3, we do not have a straightforward syntax to short-circuit
all the make logic and just build a target. GNUMake provides special FORCE targets for
this purpose.

We can however construct a target with similar properties in OMake by combining
a :value: dependency with the random function:

current-processes.text: :value: $(random)
        ps aux  > $@

Still, I would like to make the suggestion to add .FORCE targets or :force:
special dependencies to OMake, which translate the above example to

.FORCE: current-processes.text
current-processes.text:
        ps aux  > $@

or

current-processes.text: :force:
        ps aux  > $@

and state the writers intentions more clearly.

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