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

[chore] thirdparty patch file dependencies #1012

Merged
merged 2 commits into from
Nov 19, 2019

Conversation

Frenzie
Copy link
Member

@Frenzie Frenzie commented Nov 18, 2019

I'm going bonkers when a patch file is updated and nothing happens because only CMakeLists.txt is a dependency. This reruns CMake when any file in thirdparty/<dependency> changes. In practice that mostly means *.patch in addition to CMakeLists.txt. There's a cr3.css in kpvclib and that's probably about it, but I'm trying to be forward-thinking here.

I'm going bonkers when a patch file is updated and nothing happens because only CMakeLists.txt is a dependency. This reruns CMake when any file in thirdparty/<dependency> changes. In practice that mostly means *.patch.
Copy link
Member

@NiLuJe NiLuJe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems harmless enough ;).

Copy link
Contributor

@poire-z poire-z left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the *.* (with a dot needed, and not only *) needed? Parf of Makefile/CMake way of things?

@Frenzie
Copy link
Member Author

Frenzie commented Nov 18, 2019

Just * will include the directory thirdparty/freetype/build.

The manual doesn't seem to indicate any other way to exclude directories.

https://www.gnu.org/software/make/manual/html_node/Wildcard-Function.html
https://www.gnu.org/software/make/manual/html_node/Wildcard-Examples.html

@NiLuJe
Copy link
Member

NiLuJe commented Nov 18, 2019

Do we actually need the wildcard function for a rule prerequisite?

The doc seems to hint that wildcards are expanded automatically in rule prereqs.

@Frenzie
Copy link
Member Author

Frenzie commented Nov 18, 2019

To my mind I was more or less following the example from the manual:

objects := $(patsubst %.c,%.o,$(wildcard *.c))

foo : $(objects)
        cc -o foo $(objects)

Which example/explanation are you referring to precisely?

@NiLuJe
Copy link
Member

NiLuJe commented Nov 18, 2019

@Frenzie
Copy link
Member Author

Frenzie commented Nov 18, 2019

D'oh, I must've overlooked that.

@Frenzie Frenzie merged commit edc756d into koreader:master Nov 19, 2019
@Frenzie Frenzie deleted the patch-dependencies branch November 19, 2019 22:39
Frenzie added a commit to Frenzie/koreader that referenced this pull request Nov 21, 2019
* [chore] thirdparty patch file dependencies koreader/koreader-base#1012
* Revert "[fix] MuPDF Android font dir patch update koreader/koreader-base#1013

Fixes koreader#5617.
Frenzie added a commit to koreader/koreader that referenced this pull request Nov 21, 2019
* [chore] thirdparty patch file dependencies koreader/koreader-base#1012
* Revert "[fix] MuPDF Android font dir patch update koreader/koreader-base#1013

Fixes #5617.
mwoz123 pushed a commit to mwoz123/koreader that referenced this pull request Mar 29, 2020
* [chore] thirdparty patch file dependencies koreader/koreader-base#1012
* Revert "[fix] MuPDF Android font dir patch update koreader/koreader-base#1013

Fixes koreader#5617.
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

Successfully merging this pull request may close these issues.

None yet

3 participants