-
Notifications
You must be signed in to change notification settings - Fork 14
Added OSX link and unlink targets to include libs locally (WIP) #224
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
Conversation
| clean: clean-release clean-debug | ||
| link: all # for Mac OS | ||
| mkdir -p /usr/local/include/kano | ||
| ln -fs `pwd`/includes/kano/* /usr/local/include/kano |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After discussion with @tombettany , the main objection to this PR is these lines which potentially overwrite or delete stuff in /usr/local. These can be fixed by
changing it to say
-ln -spwd/includes/kano/* /usr/local/include/kano
Which will silently do nothing if the link is already there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from the noted changes, looks good.
| ln -fs `pwd`/release/$(SONAME) /usr/local/lib | ||
|
|
||
| unlink: all # for Mac OS | ||
| rm -rf /usr/local/include/kano/networking |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similarly, these rm commands should be replaced with find:
find /usr/local/include/kano/networking -xdev -type l -delete
IE, only delete symlinks.
| @rm -f $(DEBUG_OUTDIR)/$(SONAME) | ||
|
|
||
| clean: clean-release clean-debug | ||
| link: all # for Mac OS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
| @rm -f $(DEBUG_OUTDIR)/$(SONAME) | ||
|
|
||
| clean: clean-release clean-debug | ||
| link: all # for Mac OS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And here.
| @rm -f $(DEBUG_OUTDIR)/$(SONAME) | ||
|
|
||
| clean: clean-release clean-debug | ||
| link: all # for Mac OS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Etc.
|
Closing to reopen against master. |
Related to https://github.com/KanoComputing/os-dashboard/pull/243
WIP: