Skip to content

Support additional non-build tasks in generated projects #714

@Xeite

Description

@Xeite

Hello, I appreciate premake developers. I am a kernel developer, and our projects have been changed to use premake instead of pure makefiles.

There are many build-unrelated things by Makefile in our projects such as running image buidling script, debugging script, generating documents, running QEMU and so on. Before, we just make it phony target for these uses.

I ran into several problems for making just newaction syntax for them.

  1. "premake5 doc" is rather unfamiliar with common users as compared with "make doc". Although it is trivial and controversial for each people, I think seamless integration with Makefile looks better.

  2. newaction syntax can be added only for structured premake.lua. If I have several premake.lua files in sub projects and root premake.lua includes them, I could not run newaction in sub folder tree. (It can be executed only in root project folder.

  3. Phony target has dependency of pre-build target, and Makefile is for that. For example, debugging or testing is only effective after binary made.

For those reasons, I think phony target is required for premake. I am afraid of those kind of problem comes from my misunderstanding of premake. So any kind of negative feedback also appreciated. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions