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

$(abspath) return empty on some OS #362

Closed
yanni4night opened this issue Jan 12, 2015 · 8 comments
Closed

$(abspath) return empty on some OS #362

yanni4night opened this issue Jan 12, 2015 · 8 comments
Milestone

Comments

@yanni4night
Copy link

It's really weird that $(abspath .deps/$(*D)) returns empty on my Linux,then

mkdir: too few arguments
Try `mkdir --help' for more information.

But it works well on my OSX

@jonas
Copy link
Owner

jonas commented Jan 12, 2015

What Linux version and distribution are you using? It would also be helpful
to know which make command (probably GNU Make) and its version?

@yanni4night
Copy link
Author

It should be CentOS under Linux kernel version 2.6.9_7-7-0-0,but I'm not sure about that,it's a company's VM which I can ssh only.And I'm using GNU Make 3.80.

I remove abspath part,and it works.

@jonas
Copy link
Owner

jonas commented Jan 27, 2015

$(abspath) was added in 8a5a99d to fix an issue on Mac OS X where mkdir -p .deps/. fails with mkdir: .deps/.: No such file or directory.

From googling it looks like the function $(abspath) is not available in GNU Make version 3.80.

@jonas
Copy link
Owner

jonas commented Jan 27, 2015

It was an issue in Mac OS 10.9 but is fixed in version 10.10 ...

@yanni4night
Copy link
Author

Right, abspath and realpath are both supported since 3.81, so any way to detect that?

@jonas
Copy link
Owner

jonas commented Jan 27, 2015

Back when the workaround was added, most source code files lived in the root folder. They have since been moved to the src folder, which means that $(*D) can no longer be . and the workaround is no longer needed.

@jonas jonas closed this as completed in 569cd1e Jan 27, 2015
@jonas
Copy link
Owner

jonas commented Jan 27, 2015

Glad to have this sorted out.

@yanni4night
Copy link
Author

Thanks for the fixed.

@jonas jonas modified the milestone: tig-2.1 Feb 7, 2015
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

No branches or pull requests

2 participants