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

Simplify Makefile for api_docgen #10191

Merged
merged 2 commits into from
Feb 4, 2021

Conversation

Octachron
Copy link
Member

This PR removes two undefined variables and the use of | in api_docgen/Makefile,
cc @shindere .

@shindere
Copy link
Contributor

shindere commented Feb 3, 2021 via email

@dra27
Copy link
Member

dra27 commented Feb 3, 2021

I think you're using filenames with colons in them? That's a Windows no-no, I'm afraid.

@Octachron
Copy link
Member Author

@dra27 : there are no colon in filenames here? All filenames are in the [a..Z_]+ subset.

@shindere: I have updated the commit messages to signal that they concern api_docgen/Makefile.
Similarly, I have added some documentation for the up function (that only exists to please check_typo).
The order prerequisites have been restored.
And there are more white spaces.

@shindere
Copy link
Contributor

shindere commented Feb 3, 2021 via email

@Octachron
Copy link
Member Author

It's rather hard to read that makefile, in my opinion.

Note that this Makefile is partially rewritten in the odoc PR (#9997).
If you wish for more documentation and refactorization, I would rather do it in this PR.

I still do not understand the $(DIRS):%: line. Why isn't it simply
$(DIRS):

Merely, the habit of using static patterns. You are right that it can be simplified further here.

Concerning check-typo, inlining up in capitalize_one makes the line goes over the check-typo limit, and I don't know how to split the line without making \n significant. (before this PR, the code was using $\n as a trick)

The .gitignore changes are correct (there was a duplicated api_docgen/html line above).

@shindere
Copy link
Contributor

shindere commented Feb 3, 2021 via email

@Octachron
Copy link
Member Author

@shindere , do you approve the current state?

@shindere
Copy link
Contributor

shindere commented Feb 4, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants