README: Elaborate a bit on building

Pull request: #244
Approved by: jlebon
This commit is contained in:
Colin Walters 2016-03-22 10:53:26 -04:00 committed by Colin Walters (automation)
parent 3350c0e062
commit dea5040e41

View File

@ -39,16 +39,25 @@ a "recursive git archive" script. There are several available online;
[this code](https://git.gnome.org/browse/ostree/tree/packaging/Makefile.dist-packaging#n11)
in OSTree is an example.
Once you have a git clone or recursive archive, building is the
same as almost every autotools project:
Once you have a git clone or recursive archive, the next step is to
install the build dependencies. At the moment, rpm-ostree has a hard
requirement on a bleeding edge version of
[libhif](https://github.com/rpm-software-management/libhif/). It also
requires a few other libraries like
[librepo](https://github.com/rpm-software-management/librepo).
Once you have the dependencies, building is the same as every
autotools project:
```
env NOCONFIGURE=1 ./autogen.sh
./configure --prefix=...
./configure --prefix=/usr --libdir=/usr/lib64 --sysconfdir=/etc
make
make install DESTDIR=/path/to/dest
```
At this point you can run some of the unit tests with `make check`.
For more information on this, see `CONTRIBUTING.md`.
More documentation
------------------