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 rework #47

Merged
merged 3 commits into from
May 24, 2021
Merged

Conversation

corteccia
Copy link
Contributor

@corteccia corteccia commented Aug 27, 2020

Hello!

I rework some Makefiles for C++ examples. I removed all the individual Makefiles for Examples and moved them into one dir, now all .cpp files in Examples dir. Instead of individual Makefiles, I made one top-level Makefile which would compile libraries first and then all the source files in Examples into directory Build. This should solve the problem with relative paths and simplify the use of the repository for users.

So the user can now build all the libraries and examples by running make from the C++ folder. But there is no way to build just one example.

What do you think?

@corteccia corteccia marked this pull request as draft March 25, 2021 13:55
@corteccia corteccia force-pushed the makefiles-relative-paths branch 3 times, most recently from 45eb49a to b0e037d Compare May 19, 2021 15:10
It's better to exclude relative paths, i.e. building examples via one
Makefile. Thus there's no need to keep source files in separate dirs.
@corteccia corteccia marked this pull request as ready for review May 19, 2021 15:27
In case to get rid of relative paths and make it more easy to use, it's
better to use top-level Makefile for building all the libraries and
examples at once and not finding executables in several directories.
All the executables will be stored in Build dir.
We don't need to clean pigpio if it's installed on RPi since it wouldn't
be updated as submodule and it will produce an error.
@AlexanderDranitsa
Copy link
Collaborator

Well done, thanks!

@AlexanderDranitsa AlexanderDranitsa merged commit 13fe84b into emlid:master May 24, 2021
@corteccia corteccia deleted the makefiles-relative-paths branch May 24, 2021 19:35
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