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

Makefiles: replace the use of subst macro with patsubst #56

Merged
merged 1 commit into from Mar 5, 2018
Merged

Makefiles: replace the use of subst macro with patsubst #56

merged 1 commit into from Mar 5, 2018

Conversation

ghost
Copy link

@ghost ghost commented Mar 5, 2018

$(subst .c,.o,...) replaces '.c' with '.o' everywhere in pathnames. For
example, renaming the "Aegisub" folder to "Aegisub.cool" will make the
build system generate "Aegisub.oool/.../.o" objects.

https://www.gnu.org/software/make/manual/make.html#Text-Functions

$(subst .c,.o,...) replaces '.c' with '.o' everywhere in pathnames. For
example, renaming the "Aegisub" folder to "Aegisub.cool" will make the
build system generate "Aegisub.oool/.../.o" objects.

https://www.gnu.org/software/make/manual/make.html#Text-Functions
@FichteFoll
Copy link

👍 I was running into this when building Aegisub on Arch using pacaur, which performs its build inside ~/.cache/pacaur and the ".c" would. Be changed to ".o". My band-aid fix was a symlink, but this is of course way better.

Until we get to use meson for everything, hopefully.

@tgoyne tgoyne merged commit f6a2ac0 into Aegisub:master Mar 5, 2018
@ghost ghost deleted the patsubst branch March 5, 2018 21:04
pscholl pushed a commit to pscholl/Aegisub that referenced this pull request May 17, 2019
$(subst .c,.o,...) replaces '.c' with '.o' everywhere in pathnames. For
example, renaming the "Aegisub" folder to "Aegisub.cool" will make the
build system generate "Aegisub.oool/.../.o" objects.

https://www.gnu.org/software/make/manual/make.html#Text-Functions
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

2 participants