Skip to content

Mafia option to build a single sub-component of a project. #193

@tmcgilchrist

Description

@tmcgilchrist

Motivation: I have a project which has a library component and a pre-processor which generates some code, in this case it dumps out the generated code for a bunch of lenses. The generator needs to get built independently of the library.

Solution: Have an option to do an equivalent tocabal build generate which only builds the generate target in the cabal file.

For now my work around is to use a combination of

mafia lock  # Generate the build env / sandbox
cabal build generate

# nasty shell manipulation to copy generated code into library src

mafia build  # Build the actual library

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