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

Add support for Makefile as build script and make as build tool #833

Open
behnazh-w opened this issue Aug 19, 2024 · 2 comments
Open

Add support for Makefile as build script and make as build tool #833

behnazh-w opened this issue Aug 19, 2024 · 2 comments
Labels
build_tools The issues related to build tool support

Comments

@behnazh-w
Copy link
Member

Makefile is often used as a generic build tool. In fact, Macaron itself uses Makefile to generate artifacts. We already have support for a number of build tools.

To support Makefile

  • we need to add a parser for Makefile to extract shell commands, similar to our bashparser.
  • add a new module for make similar to other build tools.
@behnazh-w behnazh-w added the build_tools The issues related to build tool support label Aug 19, 2024
@jenstroeger
Copy link
Contributor

I poked around a little, and here are a few references. First off, It would be tricky to write a grammar for make, since the grammar is extremely context-dependent. (thread, similar questions here or especially here).

Having said that, I found the following attempts to come up with a Makefile grammar:

It might also make sense to explore existing syntax highlighters like Pygments which support at least Makefile lexers.

@behnazh-w given a Makefile, it looks like you’re interested in extracting the Recipes from it?

@behnazh-w
Copy link
Member Author

@behnazh-w given a Makefile, it looks like you’re interested in extracting the Recipes from it?

Yes exactly. Our ultimate goal is to find shell commands that invoke build tools. For now we can limit the Recipes to bash scripts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build_tools The issues related to build tool support
Projects
None yet
Development

No branches or pull requests

2 participants