gnu: Add guile-sqlite3.
[jackhill/guix/guix.git] / Makefile.am
index 6784da0..8fd1c1b 100644 (file)
@@ -3,6 +3,7 @@
 # Copyright © 2013 Andreas Enge <andreas@enge.fr>
 # Copyright © 2015 Alex Kost <alezost@gmail.com>
 # Copyright © 2016 Mathieu Lirzin <mthl@gnu.org>
+# Copyright © 2016 Mark H Weaver <mhw@netris.org>
 #
 # This file is part of GNU Guix.
 #
@@ -26,7 +27,7 @@ nodist_noinst_SCRIPTS =                               \
   pre-inst-env                                 \
   test-env
 
-include gnu-system.am
+include gnu/local.mk
 
 MODULES =                                      \
   guix/base32.scm                              \
@@ -37,10 +38,12 @@ MODULES =                                   \
   guix/hash.scm                                        \
   guix/pk-crypto.scm                           \
   guix/pki.scm                                 \
+  guix/combinators.scm                         \
   guix/utils.scm                               \
   guix/sets.scm                                        \
   guix/download.scm                            \
   guix/git-download.scm                                \
+  guix/hg-download.scm                         \
   guix/monads.scm                              \
   guix/monad-repl.scm                          \
   guix/gexp.scm                                        \
@@ -48,12 +51,14 @@ MODULES =                                   \
   guix/serialization.scm                       \
   guix/nar.scm                                 \
   guix/derivations.scm                         \
+  guix/grafts.scm                              \
   guix/gnu-maintenance.scm                     \
   guix/upstream.scm                            \
   guix/licenses.scm                            \
   guix/graph.scm                               \
   guix/cve.scm                                 \
   guix/build-system.scm                                \
+  guix/build-system/ant.scm                    \
   guix/build-system/cmake.scm                  \
   guix/build-system/emacs.scm                  \
   guix/build-system/glib-or-gtk.scm            \
@@ -73,10 +78,12 @@ MODULES =                                   \
   guix/cvs-download.scm                                \
   guix/svn-download.scm                                \
   guix/ui.scm                                  \
+  guix/build/ant-build-system.scm              \
   guix/build/download.scm                      \
   guix/build/cmake-build-system.scm            \
   guix/build/emacs-build-system.scm            \
   guix/build/git.scm                           \
+  guix/build/hg.scm                            \
   guix/build/glib-or-gtk-build-system.scm      \
   guix/build/gnu-build-system.scm              \
   guix/build/gnu-dist.scm                      \
@@ -97,6 +104,7 @@ MODULES =                                    \
   guix/build/gremlin.scm                       \
   guix/build/emacs-utils.scm                   \
   guix/build/graft.scm                         \
+  guix/build/bournish.scm                      \
   guix/search-paths.scm                                \
   guix/packages.scm                            \
   guix/import/utils.scm                                \
@@ -139,6 +147,7 @@ MODULES =                                   \
 if HAVE_GUILE_JSON
 
 MODULES +=                                     \
+  guix/import/github.scm                       \
   guix/import/json.scm                         \
   guix/import/pypi.scm                         \
   guix/scripts/import/pypi.scm                 \
@@ -167,13 +176,18 @@ dist_noinst_DATA = guix/tests.scm
 
 # Linux-Libre configurations.
 KCONFIGS =                                     \
-  gnu/packages/linux-libre-i686.conf           \
-  gnu/packages/linux-libre-x86_64.conf
+  gnu/packages/linux-libre-4.6-i686.conf       \
+  gnu/packages/linux-libre-4.6-x86_64.conf     \
+  gnu/packages/linux-libre-4.4-i686.conf       \
+  gnu/packages/linux-libre-4.4-x86_64.conf     \
+  gnu/packages/linux-libre-4.1-i686.conf       \
+  gnu/packages/linux-libre-4.1-x86_64.conf
 
 # Templates, examples.
 EXAMPLES =                                     \
   gnu/system/examples/bare-bones.tmpl          \
-  gnu/system/examples/desktop.tmpl
+  gnu/system/examples/desktop.tmpl             \
+  gnu/system/examples/lightweight-desktop.tmpl
 
 GOBJECTS = $(MODULES:%.scm=%.go) guix/config.go guix/tests.go
 
@@ -216,8 +230,11 @@ SCM_TESTS =                                        \
   tests/substitute.scm                         \
   tests/builders.scm                           \
   tests/derivations.scm                                \
+  tests/grafts.scm                             \
   tests/ui.scm                                 \
   tests/records.scm                            \
+  tests/upstream.scm                           \
+  tests/combinators.scm                                \
   tests/utils.scm                              \
   tests/build-utils.scm                                \
   tests/packages.scm                           \
@@ -233,6 +250,7 @@ SCM_TESTS =                                 \
   tests/profiles.scm                           \
   tests/syscalls.scm                           \
   tests/gremlin.scm                            \
+  tests/bournish.scm                           \
   tests/lint.scm                               \
   tests/publish.scm                            \
   tests/scripts.scm                            \
@@ -243,6 +261,7 @@ SCM_TESTS =                                 \
   tests/file-systems.scm                       \
   tests/system.scm                             \
   tests/services.scm                           \
+  tests/scripts-build.scm                      \
   tests/containers.scm                         \
   tests/import-utils.scm
 
@@ -279,10 +298,14 @@ endif BUILD_DAEMON
 
 TESTS = $(SCM_TESTS) $(SH_TESTS)
 
-AM_TESTS_ENVIRONMENT = abs_top_srcdir="$(abs_top_srcdir)"
+AM_TESTS_ENVIRONMENT = abs_top_srcdir="$(abs_top_srcdir)" GUILE_AUTO_COMPILE=0
 
-SCM_LOG_COMPILER = $(top_builddir)/test-env $(GUILE)
-AM_SCM_LOG_FLAGS = --no-auto-compile -L "$(top_srcdir)"
+SCM_LOG_DRIVER =                               \
+  $(top_builddir)/test-env --quiet-stderr      \
+  $(GUILE) --no-auto-compile -e main           \
+      $(top_srcdir)/build-aux/test-driver.scm
+
+AM_SCM_LOG_DRIVER_FLAGS = --brief=yes
 
 SH_LOG_COMPILER = $(top_builddir)/test-env $(SHELL)
 AM_SH_LOG_FLAGS = -x -e
@@ -310,6 +333,13 @@ check-local:
 
 endif !CAN_RUN_TESTS
 
+check-system: $(GOBJECTS)
+       $(AM_V_at)echo "Running system tests..."
+       $(AM_V_at)$(top_builddir)/pre-inst-env                  \
+          $(GUILE) --no-auto-compile                           \
+          -e '(@@ (run-system-tests) run-system-tests)'        \
+          $(top_srcdir)/build-aux/run-system-tests.scm
+
 # Public key used to sign substitutes from hydra.gnu.org.
 dist_pkgdata_DATA = hydra.gnu.org.pub
 
@@ -324,6 +354,7 @@ EXTRA_DIST =                                                \
   .dir-locals.el                                       \
   build-aux/build-self.scm                             \
   build-aux/compile-all.scm                            \
+  build-aux/hydra/evaluate.scm                         \
   build-aux/hydra/gnu-system.scm                       \
   build-aux/hydra/demo-os.scm                          \
   build-aux/hydra/guix.scm                             \
@@ -332,6 +363,8 @@ EXTRA_DIST =                                                \
   build-aux/download.scm                               \
   build-aux/make-binary-tarball.scm                    \
   build-aux/generate-authors.scm                       \
+  build-aux/test-driver.scm                            \
+  build-aux/run-system-tests.scm                       \
   srfi/srfi-37.scm.in                                  \
   srfi/srfi-64.scm                                     \
   srfi/srfi-64.upstream.scm                            \
@@ -399,16 +432,20 @@ install-data-hook: set-bootstrap-executable-permissions
 SUBDIRS = po/guix po/packages
 BUILT_SOURCES =
 
-include doc.am
+include doc/local.mk
 
 if BUILD_DAEMON
 
-include daemon.am
+include nix/local.mk
 
 endif BUILD_DAEMON
 
 ACLOCAL_AMFLAGS = -I m4
+
+# Pass an explicit '--localstatedir' so that configure does not error out if
+# it finds an existing installation with a different localstatedir.
 AM_DISTCHECK_CONFIGURE_FLAGS =                 \
+  --localstatedir="$$dc_install_base/var"      \
   --with-libgcrypt-prefix="$(LIBGCRYPT_PREFIX)"        \
   --with-libgcrypt-libdir="$(LIBGCRYPT_LIBDIR)"        \
   --with-nix-prefix="$(NIX_PREFIX)"            \
@@ -416,7 +453,7 @@ AM_DISTCHECK_CONFIGURE_FLAGS =                      \
 
 dist_emacsui_DATA = emacs/guix-main.scm
 nodist_emacsui_DATA = emacs/guix-helper.scm
-include emacs.am
+include emacs/local.mk
 
 # The self-contained tarball.
 guix-binary.%.tar.xz:
@@ -460,15 +497,23 @@ assert-no-store-file-names:
        fi
 
 # Make sure hydra.gnu.org has the important binaries.
-assert-binaries-available:
+assert-binaries-available: $(GOBJECTS)
        $(AM_V_at)$(top_builddir)/pre-inst-env "$(GUILE)"                       \
          "$(top_srcdir)/build-aux/check-available-binaries.scm"
 
 # Make sure the final inputs don't refer to bootstrap tools.
-assert-final-inputs-self-contained:
+assert-final-inputs-self-contained: $(GOBJECTS)
        $(AM_V_at)$(top_builddir)/pre-inst-env "$(GUILE)"                       \
          "$(top_srcdir)/build-aux/check-final-inputs-self-contained.scm"
 
+# Compute the Hydra jobs and write them in the target file.
+hydra-jobs.scm: $(GOBJECTS)
+       $(AM_V_at)$(MKDIR_P) "`dirname "$@"`"
+       $(AM_V_GEN)$(top_builddir)/pre-inst-env "$(GUILE)"              \
+         "$(top_srcdir)/build-aux/hydra/evaluate.scm"                  \
+         "$(top_srcdir)/build-aux/hydra/gnu-system.scm" > "$@.tmp"
+       $(AM_V_at)mv "$@.tmp" "$@"
+
 .PHONY: sync-descriptions gen-ChangeLog gen-AUTHORS clean-go make-go
 .PHONY: assert-no-store-file-names assert-binaries-available
 .PHONY: assert-final-inputs-self-contained