-
Notifications
You must be signed in to change notification settings - Fork 12
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 common Makefile #32
Comments
@gabrielmocanu isn't this done? |
Not right now, we have a Makefile for each challenge. |
As we talked on Discord, I think the best way is to have a common Makefile that will be placed somewhere ( The reasoning for the symlink is to simplify the exporting of the challenge as an archive (by solving the symlink). |
OK, so you mean like it is done in the |
Yes, that one. But I would symlink it in the local challenge directory. And the include line will turn into:
|
Since Makefile is always 90% the same as the others my proposal is to use a general Makefile.
It should be something like:
It should contain a delete rule for the file with the flag.
It should be placed in the root of the repo in the common folder, something like challenge.mk.
Then in this Makefile for each challenge we should only import and assign the variables:
This is an example from the essentials repo.
CC: @carrrina for visibility.
The text was updated successfully, but these errors were encountered: