[augeas-devel] augeas: master - Document the basics of building from git
David Lutterkort
lutter at fedoraproject.org
Wed Jan 20 20:49:07 UTC 2010
Gitweb: http://git.fedorahosted.org/git/augeas.git?p=augeas.git;a=commitdiff;h=6170b048753a0d3801ccd7a6fdf32d06bf3d3111
Commit: 6170b048753a0d3801ccd7a6fdf32d06bf3d3111
Parent: 03c54cb5523ab978c97791f42f85a52d1e308195
Author: David Lutterkort <lutter at redhat.com>
AuthorDate: Wed Jan 20 12:47:01 2010 -0800
Committer: David Lutterkort <lutter at redhat.com>
CommitterDate: Wed Jan 20 12:48:37 2010 -0800
Document the basics of building from git
---
HACKING | 37 +++++++++++++++++++++++++++++++++++++
Makefile.am | 2 +-
README | 6 +++++-
3 files changed, 43 insertions(+), 2 deletions(-)
diff --git a/HACKING b/HACKING
new file mode 100644
index 0000000..6b21e00
--- /dev/null
+++ b/HACKING
@@ -0,0 +1,37 @@
+This file explains some details about developing the Augeas C library.
+
+Check out the sources
+---------------------
+
+The sources are in a git repo (which you presumably found already)
+
+ git clone git://git.fedorahosted.org/git/augeas.git
+
+Building from git
+-----------------
+
+ Besides the usual build tools (gcc, autoconf, automake etc.) you need the
+ following tools and libraries to build Augeas:
+
+ * Bison
+ * Flex
+ * readline-devel
+ * libselinux-devel (optional)
+
+ Augeas uses gnulib, and you need a checkout of gnulib. The build scripts
+ can create a checkout for you behind the scenes - though if you already
+ have a gnulib checkout, you can pass its location to autogen.sh with the
+ --gnulib-srcdir option.
+
+ At its simplest, you build Augeas from git by running the following
+ commands in the toplevel directory of your Augeas checkout:
+
+ ./autogen.sh [--gnulib-srcdir=$GNULIB_CHECKOUT]
+ make && make install
+
+ It is recommended though to turn on a few development features when
+ building; in particular, stricter compiler warnings and some debug
+ logging. You can pass these options either to autogen.sh or to
+ configure. You'd then run autogen like this:
+
+ ./autogen.sh --enable-compile-warnings=error --enable-debug=yes
diff --git a/Makefile.am b/Makefile.am
index 080a75b..14aa121 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -8,7 +8,7 @@ lenstestdir=$(datadir)/augeas/lenses/dist/tests
dist_lens_DATA=$(wildcard lenses/*.aug)
dist_lenstest_DATA=$(wildcard lenses/tests/*.aug)
-EXTRA_DIST=augeas.spec build/aux/move-if-change Makefile.am
+EXTRA_DIST=augeas.spec build/aux/move-if-change Makefile.am HACKING
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = augeas.pc
diff --git a/README b/README
index 768d231..92d9e87 100644
--- a/README
+++ b/README
@@ -59,12 +59,16 @@ Non-goals
Building
--------
+ These instructions apply to building a released tarball. If you want to
+ build from a git checkout, see the file HACKING.
+
See the generic instructions in INSTALL. Generally,
./configure
make && make install
should be all that is needed.
- You need to have readline-devel installed
+ You need to have readline-devel installed. On systems that support
+ SELinux, you should also install libselinux-devel.
Documentation
-------------
More information about the augeas-devel
mailing list