Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generating makefile #7

Closed
DvvCz opened this issue Apr 8, 2024 · 1 comment
Closed

Generating makefile #7

DvvCz opened this issue Apr 8, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@DvvCz
Copy link
Owner

DvvCz commented Apr 8, 2024

It would be useful to be able to generate makefiles that accomplish what a cpkg build would do.

This would essentially make cpkg into something like premake.

Why

For my specific usecase, assignments are going to need to be accompanied by a makefile.

But I see how this could be useful for distributing projects to people who do not have cpkg for them to build it with other tools.

Why not

This may pose future issues as cpkg gets more functionality. Notably with dependencies.

I think it's fine to leave that discussion for later.

The command

No obvious command name strikes me, cpkg generate seems too general.. maybe cpkg export make / cpkg gen make / cpkg into make, which could later be used for other build systems..

Implementation

I don't think it would be all too difficult considering that cpkg itself is essentially a modern version of make. Some code may need to be

@DvvCz DvvCz added the enhancement New feature or request label Apr 8, 2024
@DvvCz DvvCz closed this as completed in f98f13e Apr 14, 2024
@DvvCz
Copy link
Owner Author

DvvCz commented Apr 14, 2024

Ended up going with cpkg generate make.

Not too fond of the small names hence going with generate instead of gen, and format instead of fmt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant