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

[BUILD] Add a SRC_EXTENSION variable to Makefile #380

Merged
merged 1 commit into from
Sep 12, 2024
Merged

Conversation

itislu
Copy link
Collaborator

@itislu itislu commented Sep 9, 2024

This makes the Makefile easier to reuse for other projects, also with other languages, like C++.
Today I debugged my C++ Makefile, which is based on this one, for a long time bc I missed that it expected source files to end with .c and not .cpp.

@itislu itislu added the chore A routine task label Sep 9, 2024
@LeaYeh
Copy link
Owner

LeaYeh commented Sep 10, 2024

Why the makefile need to be extended?
Why a makefile need to consider support in different version? Would you have cpp files in your c project or otherwise?

This makes the Makefile easier to reuse for other projects, also with other languages, like C++.
Today I debugged my C++ Makefile, which is based on this one, for a long time bc I missed that it expected source files to end with `.c` and not `.cpp`.
@itislu itislu force-pushed the build-src-extension branch from 586f2d3 to 63f9dc5 Compare September 10, 2024 12:17
@itislu
Copy link
Collaborator Author

itislu commented Sep 10, 2024

I would like to keep this Makefile as a reference Makefile bc a lot of people might see it.
It would make me happy if people see some cool things in it and integrate those things into their own Makefiles or even improve the ideas that they might get from ours.

@LeaYeh LeaYeh merged commit f403def into main Sep 12, 2024
44 checks passed
@LeaYeh LeaYeh deleted the build-src-extension branch September 12, 2024 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore A routine task
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants