build: Add Ant build system.
[jackhill/guix/guix.git] / Makefile.am
index 1ede6d4..92a3bc5 100644 (file)
@@ -2,6 +2,8 @@
 # Copyright © 2012, 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
 # 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.
 #
@@ -47,12 +49,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            \
@@ -72,6 +76,7 @@ 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            \
@@ -96,6 +101,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                                \
@@ -138,6 +144,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,7 +174,9 @@ 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-x86_64.conf         \
+  gnu/packages/linux-libre-4.1-i686.conf       \
+  gnu/packages/linux-libre-4.1-x86_64.conf
 
 # Templates, examples.
 EXAMPLES =                                     \
@@ -215,8 +224,10 @@ SCM_TESTS =                                        \
   tests/substitute.scm                         \
   tests/builders.scm                           \
   tests/derivations.scm                                \
+  tests/grafts.scm                             \
   tests/ui.scm                                 \
   tests/records.scm                            \
+  tests/upstream.scm                           \
   tests/utils.scm                              \
   tests/build-utils.scm                                \
   tests/packages.scm                           \
@@ -242,6 +253,7 @@ SCM_TESTS =                                 \
   tests/file-systems.scm                       \
   tests/system.scm                             \
   tests/services.scm                           \
+  tests/scripts-build.scm                      \
   tests/containers.scm                         \
   tests/import-utils.scm
 
@@ -419,7 +431,7 @@ include emacs.am
 
 # The self-contained tarball.
 guix-binary.%.tar.xz:
-       -GUIX_PACKAGE_PATH= \
+       $(AM_V_GEN)GUIX_PACKAGE_PATH= \
        $(top_builddir)/pre-inst-env "$(GUILE)"                 \
          "$(top_srcdir)/build-aux/make-binary-tarball.scm" "$*" "$@"
 
@@ -430,11 +442,11 @@ dist-hook: assert-no-store-file-names
 distcheck-hook: assert-binaries-available assert-final-inputs-self-contained
 
 sync-descriptions:
-       -GUIX_PACKAGE_PATH= \
+       $(AM_V_at)GUIX_PACKAGE_PATH= \
         $(top_builddir)/pre-inst-env guix lint --checkers=gnu-description
 
 gen-ChangeLog:
-       if test -d .git; then                           \
+       $(AM_V_GEN)if test -d .git; then                \
          $(top_srcdir)/build-aux/gitlog-to-changelog   \
            > $(distdir)/cl-t;                          \
          rm -f $(distdir)/ChangeLog;                   \
@@ -442,7 +454,7 @@ gen-ChangeLog:
        fi
 
 gen-AUTHORS:
-       if test -d .git; then                                   \
+       $(AM_V_GEN)if test -d .git; then                        \
          rm -f "$(distdir)/AUTHORS";                           \
          $(top_builddir)/pre-inst-env "$(GUILE)"               \
            "$(top_srcdir)/build-aux/generate-authors.scm"      \
@@ -451,7 +463,7 @@ gen-AUTHORS:
 
 # Make sure we're not shipping a file that embeds a local /gnu/store file name.
 assert-no-store-file-names:
-       if grep -r --exclude=*.texi --exclude=*.info                            \
+       $(AM_V_at)if grep -r --exclude=*.texi --exclude=*.info                  \
             "$(storedir)/[a-z0-9]{32}-" $(distdir) ;                           \
        then                                                                    \
          echo "error: store file names embedded in the distribution" >&2 ;     \
@@ -460,14 +472,34 @@ assert-no-store-file-names:
 
 # Make sure hydra.gnu.org has the important binaries.
 assert-binaries-available:
-       $(top_builddir)/pre-inst-env "$(GUILE)"                         \
+       $(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:
-       $(top_builddir)/pre-inst-env "$(GUILE)"                         \
+       $(AM_V_at)$(top_builddir)/pre-inst-env "$(GUILE)"                       \
          "$(top_srcdir)/build-aux/check-final-inputs-self-contained.scm"
 
 .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
+
+## -------------- ##
+## Silent rules.  ##
+## -------------- ##
+
+AM_V_DL = $(AM_V_DL_$(V))
+AM_V_DL_ = $(AM_V_DL_$(AM_DEFAULT_VERBOSITY))
+AM_V_DL_0 = @echo "  DL      " $@;
+
+AM_V_DOT = $(AM_V_DOT_$(V))
+AM_V_DOT_ = $(AM_V_DOT_$(AM_DEFAULT_VERBOSITY))
+AM_V_DOT_0 = @echo "  DOT     " $@;
+
+AM_V_EMACS = $(AM_V_EMACS_$(V))
+AM_V_EMACS_ = $(AM_V_EMACS_$(AM_DEFAULT_VERBOSITY))
+AM_V_EMACS_0 = @echo "  EMACS   " $@;
+
+AM_V_HELP2MAN = $(AM_V_HELP2MAN_$(V))
+AM_V_HELP2MAN_ = $(AM_V_HELP2MAN_$(AM_DEFAULT_VERBOSITY))
+AM_V_HELP2MAN_0 = @echo "  HELP2MAN" $@;