Skip to content

Conversation

@radujipa
Copy link
Contributor

@radujipa radujipa commented Aug 19, 2016

@radujipa radujipa changed the title Added OSX link and unlink targets to include libs locally Added OSX link and unlink targets to include libs locally (WIP) Aug 19, 2016
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
Copy link
Contributor

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.

Copy link
Contributor

@Ealdwulf Ealdwulf left a 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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

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

Etc.

@Ealdwulf
Copy link
Contributor

Closing to reopen against master.

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.

3 participants