gnu: p11-kit: Update to 0.23.7.
[jackhill/guix/guix.git] / Makefile.am
index f574f5f..1be09d7 100644 (file)
@@ -5,6 +5,7 @@
 # Copyright © 2016 Mathieu Lirzin <mthl@gnu.org>
 # Copyright © 2016, 2017 Mark H Weaver <mhw@netris.org>
 # Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
+# Copyright © 2017 Leo Famulari <leo@famulari.name>
 #
 # This file is part of GNU Guix.
 #
@@ -75,6 +76,7 @@ MODULES =                                     \
   guix/build-system/cmake.scm                  \
   guix/build-system/dub.scm                    \
   guix/build-system/emacs.scm                  \
+  guix/build-system/font.scm                   \
   guix/build-system/asdf.scm                   \
   guix/build-system/glib-or-gtk.scm            \
   guix/build-system/gnu.scm                    \
@@ -100,6 +102,7 @@ MODULES =                                   \
   guix/build/cmake-build-system.scm            \
   guix/build/dub-build-system.scm              \
   guix/build/emacs-build-system.scm            \
+  guix/build/font-build-system.scm             \
   guix/build/asdf-build-system.scm             \
   guix/build/git.scm                           \
   guix/build/hg.scm                            \
@@ -124,6 +127,7 @@ MODULES =                                   \
   guix/build/syscalls.scm                       \
   guix/build/gremlin.scm                       \
   guix/build/emacs-utils.scm                   \
+  guix/build/java-utils.scm                    \
   guix/build/lisp-utils.scm                    \
   guix/build/graft.scm                         \
   guix/build/bournish.scm                      \
@@ -159,7 +163,6 @@ MODULES =                                   \
   guix/scripts/import/gnu.scm                  \
   guix/scripts/import/nix.scm                  \
   guix/scripts/import/hackage.scm              \
-  guix/scripts/import/stackage.scm             \
   guix/scripts/import/elpa.scm                 \
   guix/scripts/environment.scm                 \
   guix/scripts/publish.scm                     \
@@ -184,7 +187,8 @@ MODULES +=                                  \
   guix/import/stackage.scm                     \
   guix/scripts/import/crate.scm                        \
   guix/scripts/import/gem.scm                  \
-  guix/scripts/import/pypi.scm
+  guix/scripts/import/pypi.scm                 \
+  guix/scripts/import/stackage.scm
 
 endif
 
@@ -197,6 +201,13 @@ MODULES +=                                 \
 
 endif HAVE_GUILE_SSH
 
+if HAVE_GUILE_GIT
+
+MODULES +=                                     \
+  guix/git.scm
+
+endif HAVE_GUILE_GIT
+
 if BUILD_DAEMON_OFFLOAD
 
 MODULES +=                                     \
@@ -223,7 +234,8 @@ AUX_FILES =                                         \
 EXAMPLES =                                     \
   gnu/system/examples/bare-bones.tmpl          \
   gnu/system/examples/desktop.tmpl             \
-  gnu/system/examples/lightweight-desktop.tmpl
+  gnu/system/examples/lightweight-desktop.tmpl \
+  gnu/system/examples/vm-image.tmpl
 
 GOBJECTS = $(MODULES:%.scm=%.go) guix/config.go $(dist_noinst_DATA:%.scm=%.go)
 
@@ -419,6 +431,7 @@ EXTRA_DIST =                                                \
   build-aux/generate-authors.scm                       \
   build-aux/test-driver.scm                            \
   build-aux/update-guix-package.scm                    \
+  build-aux/update-NEWS.scm                            \
   build-aux/run-system-tests.scm                       \
   d3.v3.js                                             \
   graph.js                                             \
@@ -517,7 +530,7 @@ guix-binary.%.tar.xz:
        cp "$$tarball" "$@.tmp" ; mv "$@.tmp" "$@"
 
 
-dist-hook: gen-ChangeLog gen-AUTHORS gen-tarball-version
+dist-hook: $(distdir)/ChangeLog gen-AUTHORS gen-tarball-version
 dist-hook: assert-no-store-file-names
 
 distcheck-hook: assert-binaries-available assert-final-inputs-self-contained
@@ -530,7 +543,7 @@ $(top_srcdir)/.version:
 gen-tarball-version:
        echo $(VERSION) > "$(distdir)/.tarball-version"
 
-gen-ChangeLog:
+gen-ChangeLog $(distdir)/ChangeLog:
        $(AM_V_GEN)if test -d .git; then                \
          $(top_srcdir)/build-aux/gitlog-to-changelog   \
            > $(distdir)/cl-t;                          \
@@ -561,21 +574,30 @@ SOURCE_TARBALLS =                                 \
   $(foreach ext,tar.gz,$(PACKAGE_FULL_TARNAME).$(ext))
 
 # Systems supported by Guix.
-SUPPORTED_SYSTEMS = x86_64-linux i686-linux armhf-linux
+SUPPORTED_SYSTEMS ?= x86_64-linux i686-linux armhf-linux
 
 # Guix binary tarballs.
 BINARY_TARBALLS =                                                      \
   $(foreach system,$(SUPPORTED_SYSTEMS),guix-binary.$(system).tar.xz)
 
 # Systems supported by GuixSD.
-GUIXSD_SUPPORTED_SYSTEMS = x86_64-linux #i686-linux
+GUIXSD_SUPPORTED_SYSTEMS ?= x86_64-linux i686-linux
+
+# Systems for which we build GuixSD VMs.
+GUIXSD_VM_SYSTEMS ?= x86_64-linux
 
 # Prefix of the GuixSD installation image file name.
 GUIXSD_IMAGE_BASE = guixsd-usb-install-$(PACKAGE_VERSION)
 
+# Prefix of the GuixSD VM image file name.
+GUIXSD_VM_IMAGE_BASE = guixsd-vm-image-$(PACKAGE_VERSION)
+
 # Size of the installation image (for x86_64 typically).
 GUIXSD_INSTALLATION_IMAGE_SIZE ?= 950MiB
 
+# Size of the VM image (for x86_64 typically).
+GUIXSD_VM_IMAGE_SIZE ?= 2GiB
+
 # The release process works in several phases:
 #
 #   0. We assume the developer created a 'vX.Y' tag.
@@ -588,11 +610,18 @@ GUIXSD_INSTALLATION_IMAGE_SIZE ?= 950MiB
 #
 # This 'release' target takes care of everything and copies the resulting
 # files to $(releasedir).
-release: distcheck
+#
+# XXX: Depend on 'dist' rather than 'distcheck' to work around the Gettext
+# issue described at <https://savannah.gnu.org/bugs/index.php?51027>.
+release: dist
+       cd po; git checkout .
+       @if ! git diff-index --quiet HEAD; then                 \
+         echo "There are uncommitted changes; stopping." >&2 ; \
+         exit 1 ;                                              \
+       fi
        $(MKDIR_P) "$(releasedir)"
        rm -f "$(releasedir)"/*
        mv $(SOURCE_TARBALLS) "$(releasedir)"
-       cd po; git checkout .
        $(top_builddir)/pre-inst-env "$(GUILE)"                 \
           $(top_srcdir)/build-aux/update-guix-package.scm      \
           "`git rev-parse HEAD`" "$(PACKAGE_VERSION)"
@@ -612,6 +641,7 @@ release: distcheck
        for system in $(GUIXSD_SUPPORTED_SYSTEMS) ; do                                  \
          image=`$(top_builddir)/pre-inst-env                                           \
            guix system disk-image                                                      \
+            --system=$$system                                                          \
            --image-size=$(GUIXSD_INSTALLATION_IMAGE_SIZE)                              \
            gnu/system/install.scm` ;                                                   \
          if [ ! -f "$$image" ] ; then                                                  \
@@ -622,6 +652,23 @@ release: distcheck
          mv "$(releasedir)/$(GUIXSD_IMAGE_BASE).$$system.xz.tmp"                       \
             "$(releasedir)/$(GUIXSD_IMAGE_BASE).$$system.xz" ;                         \
        done
+       for system in $(GUIXSD_VM_SYSTEMS) ; do                                         \
+         image=`$(top_builddir)/pre-inst-env                                           \
+           guix system vm-image                                                        \
+           --system=$$system                                                           \
+           --image-size=$(GUIXSD_VM_IMAGE_SIZE)                                        \
+           gnu/system/examples/vm-image.tmpl` ;                                        \
+         if [ ! -f "$$image" ] ; then                                                  \
+           echo "failed to produced GuixSD VM image for $$system" >&2 ;                \
+           exit 1 ;                                                                    \
+         fi ;                                                                          \
+         xz < "$$image" > "$(releasedir)/$(GUIXSD_VM_IMAGE_BASE).$$system.xz.tmp" ;    \
+         mv "$(releasedir)/$(GUIXSD_VM_IMAGE_BASE).$$system.xz.tmp"                    \
+            "$(releasedir)/$(GUIXSD_VM_IMAGE_BASE).$$system.xz" ;                      \
+       done
+       @echo
+       @echo "Congratulations!  All the release files are now in $(releasedir)."
+       @echo
 
 update-guix-package:
        git rev-parse HEAD
@@ -629,8 +676,17 @@ update-guix-package:
           $(top_srcdir)/build-aux/update-guix-package.scm      \
           "`git rev-parse HEAD`"
 
+# Location of a checkout of <git://git.savannah.gnu.org/guix/maintenance.git>.
+# Package data from this checkout is used by 'update-NEWS.scm'.
+GUIX_MAINTENANCE_DIRECTORY ?= $(top_srcdir)/../guix-maintenance
+
+update-NEWS: $(GOBJECTS)
+       $(top_builddir)/pre-inst-env "$(GUILE)"                         \
+         $(top_srcdir)/build-aux/update-NEWS.scm                       \
+         $(top_srcdir)/NEWS "$(GUIX_MAINTENANCE_DIRECTORY)/data"
+
 # Make sure we're not shipping a file that embeds a local /gnu/store file name.
-assert-no-store-file-names:
+assert-no-store-file-names: $(distdir)/ChangeLog
        $(AM_V_at)if grep -r --exclude=*.texi --exclude=*.info                  \
             --exclude=*.info-[0-9] --exclude=*.dot                             \
             --exclude=*.eps --exclude-dir=bootstrap                            \
@@ -664,7 +720,7 @@ hydra-jobs.scm: $(GOBJECTS)
 .PHONY: assert-no-store-file-names assert-binaries-available
 .PHONY: assert-final-inputs-self-contained
 .PHONY: clean-go make-go
-.PHONY: update-guix-package release
+.PHONY: update-guix-package update-NEWS release
 
 ## -------------- ##
 ## Silent rules.  ##