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

make astyle #5

Open
Lunderberg opened this issue May 19, 2016 · 0 comments
Open

make astyle #5

Lunderberg opened this issue May 19, 2016 · 0 comments

Comments

@Lunderberg
Copy link
Owner

It would be pretty convenient to be able to automatically format all code present in the project.

  • New variable in the default.inc, ASTYLE_SPEC. This points to a text file containing all command-line arguments to be passed to astyle.
  • New phony target, "astyle". This is present only if ASTYLE_SPEC is non-empty. This calls astyle on all source files within the project.
  • New variable in a library's Makefile.inc, LIBRARY_ASTYLE_SPEC. If set, "make astyle" will also format code within the library. If unset, library code will not be reformatted. Can be set to $(ASTYLE_SPEC) to use the project's specification.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant