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

Make the top-level Makefile build/install all of ld-decode #387

Merged
merged 3 commits into from
Dec 27, 2019

Conversation

atsampson
Copy link
Collaborator

The effect of this is that the installation instructions for ld-decode can be simplified to something like:

  • Install the dependencies
  • make -j8 (or however many CPUs you have)
  • sudo make install

You can also specify prefix=/wherever to install into a different prefix, and you can specify prefix=/usr DESTDIR=/somewhere/else as usual to install into a staging area when building distribution packages. The CI does a DESTDIR installation to check it all basically works.

Make's default CC is used to build ld-ldf-reader, so clang can be removed from the list of dependencies (you can still set CC=clang if you prefer). Variables are provided for qmake and python3 since some distributions name these differently.

There's no standard for this in qmake, but PREFIX seems to be a common
name in other projects.
This tries to cover building and installation for typical users, and
supports GNU-style prefix and DESTDIR variables for installing in custom
prefixes and package staging dirs.

Variables are provided to override qmake and python3 because some
systems have different names for these (qmake-5, python3.7, ...).
@simoninns simoninns merged commit e20a006 into happycube:rev7 Dec 27, 2019
@atsampson atsampson deleted the topmakefile branch January 6, 2020 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants