doc: Fix typos.
[jackhill/guix/guix.git] / Makefile.am
CommitLineData
233e7676 1# GNU Guix --- Functional package management for GNU
bb251307 2# Copyright © 2012, 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
f2499672 3# Copyright © 2013 Andreas Enge <andreas@enge.fr>
a8ac45b1 4# Copyright © 2015 Alex Kost <alezost@gmail.com>
8c3d8894 5# Copyright © 2016 Mathieu Lirzin <mthl@gnu.org>
adddd5ba 6# Copyright © 2016 Mark H Weaver <mhw@netris.org>
af51c820 7#
233e7676 8# This file is part of GNU Guix.
af51c820 9#
233e7676 10# GNU Guix is free software; you can redistribute it and/or modify it
af51c820
LC
11# under the terms of the GNU General Public License as published by
12# the Free Software Foundation; either version 3 of the License, or (at
13# your option) any later version.
14#
233e7676 15# GNU Guix is distributed in the hope that it will be useful, but
af51c820
LC
16# WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18# GNU General Public License for more details.
19#
20# You should have received a copy of the GNU General Public License
233e7676 21# along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
af51c820 22
c52a5bf0 23bin_SCRIPTS = \
e49951eb 24 scripts/guix
14a1c319 25
58867ae7
MW
26nodist_noinst_SCRIPTS = \
27 pre-inst-env \
28 test-env
29
03d0e2d2 30include gnu/local.mk
d516736c 31
af51c820 32MODULES = \
ddc29a78 33 guix/base32.scm \
e9c6c584 34 guix/base64.scm \
7a18c3cc 35 guix/cpio.scm \
c0cd1b3e 36 guix/records.scm \
4862bc4a 37 guix/gcrypt.scm \
72626a71 38 guix/hash.scm \
3476ded9 39 guix/pk-crypto.scm \
8b420f74 40 guix/pki.scm \
958dd3ce 41 guix/combinators.scm \
73fbb904 42 guix/utils.scm \
d326767e 43 guix/sets.scm \
7ca87354 44 guix/modules.scm \
de1355f1 45 guix/download.scm \
9b5b5c17 46 guix/git-download.scm \
c4e48b68 47 guix/hg-download.scm \
b860f382 48 guix/monads.scm \
b9b86078 49 guix/monad-repl.scm \
21b679f6 50 guix/gexp.scm \
cc4ecc2d 51 guix/profiles.scm \
0f41c26f
LC
52 guix/serialization.scm \
53 guix/nar.scm \
af51c820 54 guix/derivations.scm \
7adf9b84 55 guix/grafts.scm \
22189ed1 56 guix/gnu-maintenance.scm \
0a7c5a09 57 guix/upstream.scm \
838d78e3 58 guix/licenses.scm \
8fb58371 59 guix/graph.scm \
0eef7551 60 guix/cve.scm \
72153902 61 guix/zlib.scm \
208f7cd1 62 guix/build-system.scm \
5f7a1a4d 63 guix/build-system/ant.scm \
4b3cb7f4 64 guix/build-system/cargo.scm \
c6bded8a 65 guix/build-system/cmake.scm \
e9137a53 66 guix/build-system/emacs.scm \
a1b30f99 67 guix/build-system/asdf.scm \
be3425e5 68 guix/build-system/glib-or-gtk.scm \
208f7cd1 69 guix/build-system/gnu.scm \
ce6fc7d6 70 guix/build-system/haskell.scm \
08fd1ebe 71 guix/build-system/perl.scm \
40506d5d 72 guix/build-system/python.scm \
e6876cb9 73 guix/build-system/ocaml.scm \
a677c726 74 guix/build-system/waf.scm \
f8f3bef6 75 guix/build-system/r.scm \
c08f9818 76 guix/build-system/ruby.scm \
be13fbfa 77 guix/build-system/trivial.scm \
457dd86d 78 guix/ftp-client.scm \
3b8258c5 79 guix/http-client.scm \
0fdd3bea 80 guix/gnupg.scm \
d5d16686 81 guix/elf.scm \
af51c820 82 guix/store.scm \
89328d24 83 guix/cvs-download.scm \
b3acf365 84 guix/svn-download.scm \
073c34d7 85 guix/ui.scm \
5f7a1a4d 86 guix/build/ant-build-system.scm \
62cab99c 87 guix/build/download.scm \
4b3cb7f4 88 guix/build/cargo-build-system.scm \
c6bded8a 89 guix/build/cmake-build-system.scm \
e9137a53 90 guix/build/emacs-build-system.scm \
a1b30f99 91 guix/build/asdf-build-system.scm \
9b5b5c17 92 guix/build/git.scm \
c4e48b68 93 guix/build/hg.scm \
be3425e5 94 guix/build/glib-or-gtk-build-system.scm \
af51c820 95 guix/build/gnu-build-system.scm \
fe12c345 96 guix/build/gnu-dist.scm \
08fd1ebe 97 guix/build/perl-build-system.scm \
40506d5d 98 guix/build/python-build-system.scm \
e6876cb9 99 guix/build/ocaml-build-system.scm \
f8f3bef6 100 guix/build/r-build-system.scm \
c08f9818 101 guix/build/ruby-build-system.scm \
a677c726 102 guix/build/waf-build-system.scm \
9fd6c2ba 103 guix/build/haskell-build-system.scm \
6fd1a796 104 guix/build/store-copy.scm \
1273d44a 105 guix/build/utils.scm \
c8c88afa 106 guix/build/union.scm \
611adb1e 107 guix/build/profiles.scm \
3dbeecd2 108 guix/build/pull.scm \
3309e3a1 109 guix/build/rpath.scm \
89328d24 110 guix/build/cvs.scm \
b3acf365 111 guix/build/svn.scm \
875715ca 112 guix/build/syscalls.scm \
15aa2c38 113 guix/build/gremlin.scm \
75f3b1a1 114 guix/build/emacs-utils.scm \
a1b30f99 115 guix/build/lisp-utils.scm \
fb59e275 116 guix/build/graft.scm \
f2e4805b 117 guix/build/bournish.scm \
2098d024 118 guix/build/qt-utils.scm \
f13f60cb 119 guix/build/make-bootstrap.scm \
e89431bf 120 guix/search-paths.scm \
e3ce5d70 121 guix/packages.scm \
1b3e9685 122 guix/import/utils.scm \
7047133f 123 guix/import/gnu.scm \
1b3e9685 124 guix/import/snix.scm \
a4154748 125 guix/import/cabal.scm \
e1248602 126 guix/import/cran.scm \
a4154748 127 guix/import/hackage.scm \
7f74a931 128 guix/import/elpa.scm \
88981dd3 129 guix/scripts.scm \
de1355f1 130 guix/scripts/download.scm \
94d92c77 131 guix/scripts/perform-download.scm \
de1355f1 132 guix/scripts/build.scm \
760c60d6 133 guix/scripts/archive.scm \
de1355f1
LC
134 guix/scripts/import.scm \
135 guix/scripts/package.scm \
136 guix/scripts/gc.scm \
137 guix/scripts/hash.scm \
138 guix/scripts/pull.scm \
2c74fde0 139 guix/scripts/substitute.scm \
526382ff 140 guix/scripts/authenticate.scm \
de1355f1 141 guix/scripts/refresh.scm \
523e4896 142 guix/scripts/system.scm \
b4f5e0e8 143 guix/scripts/lint.scm \
d23c20f1 144 guix/scripts/challenge.scm \
e1248602 145 guix/scripts/import/cran.scm \
7047133f 146 guix/scripts/import/gnu.scm \
1b3e9685 147 guix/scripts/import/nix.scm \
a4154748 148 guix/scripts/import/hackage.scm \
7f74a931 149 guix/scripts/import/elpa.scm \
372c4bbc 150 guix/scripts/environment.scm \
aff8ce7c 151 guix/scripts/publish.scm \
39bee8a2 152 guix/scripts/edit.scm \
fcc58db6 153 guix/scripts/size.scm \
88856916 154 guix/scripts/graph.scm \
32efa254
DT
155 guix/scripts/container.scm \
156 guix/scripts/container/exec.scm \
e3ce5d70 157 guix.scm \
d516736c 158 $(GNU_SYSTEM_MODULES)
af51c820 159
bb251307
LC
160if HAVE_GUILE_JSON
161
162MODULES += \
03476a23 163 guix/docker.scm \
70161842 164 guix/import/github.scm \
bb251307 165 guix/import/json.scm \
60230413
DT
166 guix/import/crate.scm \
167 guix/scripts/import/crate.scm \
bb251307
LC
168 guix/import/pypi.scm \
169 guix/scripts/import/pypi.scm \
170 guix/import/cpan.scm \
171 guix/scripts/import/gem.scm \
172 guix/import/gem.scm
173
174endif
175
987a29ba
LC
176if HAVE_GUILE_SSH
177
178MODULES += \
f11c444d
LC
179 guix/ssh.scm \
180 guix/scripts/copy.scm
987a29ba
LC
181
182endif HAVE_GUILE_SSH
183
49e6291a
LC
184if BUILD_DAEMON_OFFLOAD
185
186MODULES += \
187 guix/scripts/offload.scm
188
189endif BUILD_DAEMON_OFFLOAD
190
17ab08bc
LC
191# Internal modules with test suite support.
192dist_noinst_DATA = guix/tests.scm guix/tests/http.scm
c1bc358f 193
a94546ec
LC
194# Linux-Libre configurations.
195KCONFIGS = \
57fe28a0
MW
196 gnu/packages/linux-libre-4.9-i686.conf \
197 gnu/packages/linux-libre-4.9-x86_64.conf \
75b314a6
MW
198 gnu/packages/linux-libre-4.4-i686.conf \
199 gnu/packages/linux-libre-4.4-x86_64.conf \
adddd5ba
MW
200 gnu/packages/linux-libre-4.1-i686.conf \
201 gnu/packages/linux-libre-4.1-x86_64.conf
1959fb04 202
ebc32b31
LC
203# Templates, examples.
204EXAMPLES = \
36ffaca2 205 gnu/system/examples/bare-bones.tmpl \
d038b674
LC
206 gnu/system/examples/desktop.tmpl \
207 gnu/system/examples/lightweight-desktop.tmpl
ebc32b31 208
17ab08bc 209GOBJECTS = $(MODULES:%.scm=%.go) guix/config.go $(dist_noinst_DATA:%.scm=%.go)
af51c820 210
74574fd1
RW
211nobase_dist_guilemodule_DATA = \
212 $(MODULES) $(KCONFIGS) $(EXAMPLES) \
213 $(MISC_DISTRO_FILES)
1959fb04 214nobase_nodist_guilemodule_DATA = $(GOBJECTS) guix/config.scm
800cdeef 215
1959fb04
LC
216# Do we need to provide our own non-broken (srfi srfi-37) module?
217if INSTALL_SRFI_37
218
219nobase_nodist_guilemodule_DATA += srfi/srfi-37.scm
220GOBJECTS += srfi/srfi-37.go
221
222srfi/srfi-37.scm: srfi/srfi-37.scm.in
223 $(MKDIR_P) srfi
224 cp "$<" "$@"
225
226endif INSTALL_SRFI_37
ac5aa288 227
70a9c720
LC
228# Handy way to remove the .go files without removing all the rest.
229clean-go:
230 -$(RM) -f $(GOBJECTS)
cdf26f40
EB
231 @find . -name '*.go' -print | \
232 if test -t 1; then \
233 xargs -r echo -e "\033[31mwarning:\033[0m stray .go files:"; \
234 else \
235 xargs -r echo "warning: stray .go files:"; \
236 fi
70a9c720 237
af51c820 238
bb251307
LC
239# Test extensions; has to be unconditional.
240TEST_EXTENSIONS = .scm .sh
241
242if CAN_RUN_TESTS
243
30dd8310 244SCM_TESTS = \
ddc29a78 245 tests/base32.scm \
e9c6c584 246 tests/base64.scm \
7a18c3cc 247 tests/cpio.scm \
69927e78 248 tests/hash.scm \
3476ded9 249 tests/pk-crypto.scm \
8b420f74 250 tests/pki.scm \
d326767e 251 tests/sets.scm \
7ca87354 252 tests/modules.scm \
202440e0 253 tests/gnu-maintenance.scm \
2c74fde0 254 tests/substitute.scm \
af51c820
LC
255 tests/builders.scm \
256 tests/derivations.scm \
7adf9b84 257 tests/grafts.scm \
299112d3 258 tests/ui.scm \
c0cd1b3e 259 tests/records.scm \
f1eacbaf 260 tests/upstream.scm \
958dd3ce 261 tests/combinators.scm \
e3ce5d70 262 tests/utils.scm \
b0e0d0e9 263 tests/build-utils.scm \
c8c88afa 264 tests/packages.scm \
10226c05 265 tests/snix.scm \
a4154748 266 tests/hackage.scm \
e1248602 267 tests/cran.scm \
7f74a931 268 tests/elpa.scm \
3259877d 269 tests/store.scm \
b860f382 270 tests/monads.scm \
21b679f6 271 tests/gexp.scm \
53c63ee9 272 tests/nar.scm \
a2078770 273 tests/union.scm \
29fa45f4 274 tests/profiles.scm \
b4f5e0e8 275 tests/syscalls.scm \
15aa2c38 276 tests/gremlin.scm \
f82c5853 277 tests/bournish.scm \
aff8ce7c 278 tests/lint.scm \
fcc58db6 279 tests/publish.scm \
88981dd3 280 tests/scripts.scm \
c1f6a0c2 281 tests/size.scm \
88856916 282 tests/graph.scm \
d23c20f1 283 tests/challenge.scm \
0eef7551 284 tests/cve.scm \
72153902 285 tests/zlib.scm \
661a1d79 286 tests/file-systems.scm \
6b779207 287 tests/system.scm \
0adfe95a 288 tests/services.scm \
629a064f 289 tests/scripts-build.scm \
a132f7d6
BW
290 tests/containers.scm \
291 tests/import-utils.scm
30dd8310 292
1b3e9685
DT
293if HAVE_GUILE_JSON
294
d45dc6da
EB
295SCM_TESTS += \
296 tests/pypi.scm \
a96524cc 297 tests/cpan.scm \
3e0c0365
DC
298 tests/gem.scm \
299 tests/crate.scm
1b3e9685
DT
300
301endif
302
30dd8310 303SH_TESTS = \
0afdc485 304 tests/guix-build.sh \
37d19403 305 tests/guix-download.sh \
fe8ff028 306 tests/guix-gc.sh \
ccbce848 307 tests/guix-hash.sh \
0820098d 308 tests/guix-package.sh \
57b86237 309 tests/guix-package-net.sh \
c1202fb1 310 tests/guix-system.sh \
760c60d6 311 tests/guix-archive.sh \
dd7c013d 312 tests/guix-authenticate.sh \
cad25264 313 tests/guix-environment.sh \
f535dcbe 314 tests/guix-environment-container.sh \
88856916 315 tests/guix-graph.sh \
dd7c013d 316 tests/guix-lint.sh
af51c820 317
a7a4e6a4
LC
318if BUILD_DAEMON
319
320SH_TESTS += tests/guix-register.sh
321
322endif BUILD_DAEMON
323
324
30dd8310
LC
325TESTS = $(SCM_TESTS) $(SH_TESTS)
326
a9edb211 327AM_TESTS_ENVIRONMENT = abs_top_srcdir="$(abs_top_srcdir)" GUILE_AUTO_COMPILE=0
352ec143 328
4d9ed584
LC
329SCM_LOG_DRIVER = \
330 $(top_builddir)/test-env --quiet-stderr \
331 $(GUILE) --no-auto-compile -e main \
332 $(top_srcdir)/build-aux/test-driver.scm
333
a9edb211 334AM_SCM_LOG_DRIVER_FLAGS = --brief=yes
97298ffa 335
69cfce50 336SH_LOG_COMPILER = $(top_builddir)/test-env $(SHELL)
97298ffa 337AM_SH_LOG_FLAGS = -x -e
af51c820 338
3a33730a
LC
339# Make sure `tests/guix-gc.sh' runs last, after all the others. Otherwise it
340# could end up removing files from the store while they are being used by
341# other instances of the daemon.
342tests/guix-gc.log: \
343 $(patsubst %.sh,%.log,$(filter-out tests/guix-gc.sh,$(SH_TESTS))) \
344 $(SCM_TESTS:%.scm=%.log)
345
bb251307
LC
346else !CAN_RUN_TESTS
347
348TESTS =
349SH_TESTS =
350SCM_TESTS =
351
352# Automake always generates a 'check' target, so better not override it.
353check-local:
354 @echo
355 @echo "Cannot run tests because file name limits would be exceeded." >&2
356 @echo "Look for 'length' in the 'config.log' file for details." >&2
357 @echo
358 @exit 1
359
360endif !CAN_RUN_TESTS
361
e9f693d0 362check-system: $(GOBJECTS)
e9f693d0
LC
363 $(AM_V_at)$(top_builddir)/pre-inst-env \
364 $(GUILE) --no-auto-compile \
365 -e '(@@ (run-system-tests) run-system-tests)' \
366 $(top_srcdir)/build-aux/run-system-tests.scm
367
bf59c06d 368# Public key used to sign substitutes from hydra.gnu.org.
6c110833 369dist_pkgdata_DATA = hydra.gnu.org.pub
3a33730a 370
ee3e157d
LC
371# Bash completion file.
372dist_bashcompletion_DATA = etc/completion/bash/guix
373
96dbc930
ELB
374# Zsh completion file.
375dist_zshcompletion_DATA = etc/completion/zsh/_guix
376
81f61c17
LC
377EXTRA_DIST = \
378 HACKING \
379 ROADMAP \
380 TODO \
e15fcdd1 381 CODE-OF-CONDUCT \
81f61c17 382 .dir-locals.el \
f81ac34d 383 build-aux/build-self.scm \
de6af327 384 build-aux/compile-all.scm \
89cbec89 385 build-aux/hydra/evaluate.scm \
81f61c17
LC
386 build-aux/hydra/gnu-system.scm \
387 build-aux/hydra/demo-os.scm \
388 build-aux/hydra/guix.scm \
389 build-aux/check-available-binaries.scm \
390 build-aux/check-final-inputs-self-contained.scm \
391 build-aux/download.scm \
8bc35f85 392 build-aux/make-binary-tarball.scm \
1c2ae810 393 build-aux/generate-authors.scm \
3cf0dbda 394 build-aux/test-driver.scm \
41c569d9 395 build-aux/run-system-tests.scm \
4d93f312
RW
396 d3.v3.js \
397 graph.js \
81f61c17
LC
398 srfi/srfi-37.scm.in \
399 srfi/srfi-64.scm \
400 srfi/srfi-64.upstream.scm \
401 tests/test.drv \
402 tests/signing-key.pub \
403 tests/signing-key.sec \
0eef7551 404 tests/cve-sample.xml \
81f61c17
LC
405 build-aux/config.rpath \
406 bootstrap \
407 release.nix \
ed795c06 408 $(TESTS)
d7672884 409
49e6291a
LC
410if !BUILD_DAEMON_OFFLOAD
411
412EXTRA_DIST += \
413 guix/scripts/offload.scm
414
415endif !BUILD_DAEMON_OFFLOAD
416
417
30dd8310
LC
418CLEANFILES = \
419 $(GOBJECTS) \
9bff16b3 420 $(SCM_TESTS:tests/%.scm=%.log)
af51c820 421
28561d85
LC
422# Unset 'GUILE_LOAD_COMPILED_PATH' altogether while compiling. Otherwise, if
423# $GUILE_LOAD_COMPILED_PATH contains $(moduledir), we may find .go files in
424# there that are newer than the local .scm files (for instance because the
425# user ran 'make install' recently). When that happens, we end up loading
426# those previously-installed .go files, which may be stale, thereby breaking
d92e23dc
LC
427# the whole thing. Likewise, set 'XDG_CACHE_HOME' to avoid loading possibly
428# stale files from ~/.cache/guile/ccache.
de6af327 429%.go: make-go ; @:
17ab08bc 430make-go: $(MODULES) guix/config.scm $(dist_noinst_DATA)
de6af327 431 $(AM_V_at)echo "Compiling Scheme modules..." ; \
28561d85 432 unset GUILE_LOAD_COMPILED_PATH ; \
d92e23dc 433 XDG_CACHE_HOME=/nowhere \
de6af327 434 host=$(host) srcdir="$(top_srcdir)" \
671d8f5e 435 $(top_builddir)/pre-inst-env \
de6af327
TUBK
436 $(GUILE) -L "$(top_builddir)" -L "$(top_srcdir)" \
437 --no-auto-compile \
438 -s "$(top_srcdir)"/build-aux/compile-all.scm $^
af51c820
LC
439
440SUFFIXES = .go
441
442# Make sure source files are installed first, so that the mtime of
443# installed compiled files is greater than that of installed source
444# files. See
445# <http://lists.gnu.org/archive/html/guile-devel/2010-07/msg00125.html>
446# for details.
447guix_install_go_files = install-nobase_nodist_guilemoduleDATA
448$(guix_install_go_files): install-nobase_dist_guilemoduleDATA
f68b0893 449
6005bd07
LC
450# The above trick doesn't work for 'config.go' because both 'config.scm' and
451# 'config.go' are listed in $(nobase_nodist_guilemodule_DATA). Thus, give it
452# special treatment.
453install-data-hook: set-bootstrap-executable-permissions
454 touch "$(DESTDIR)$(guilemoduledir)/guix/config.go"
455
456
ee764179 457SUBDIRS = po/guix po/packages
931c132a 458BUILT_SOURCES =
a9424c08 459
03d0e2d2 460include doc/local.mk
568717fd 461
c2033df4
LC
462if BUILD_DAEMON
463
03d0e2d2 464include nix/local.mk
c2033df4
LC
465
466endif BUILD_DAEMON
467
f68b0893 468ACLOCAL_AMFLAGS = -I m4
ef5f5c86
LC
469
470# Pass an explicit '--localstatedir' so that configure does not error out if
471# it finds an existing installation with a different localstatedir.
e76bdf8b 472AM_DISTCHECK_CONFIGURE_FLAGS = \
ef5f5c86 473 --localstatedir="$$dc_install_base/var" \
d388c2c4 474 --with-libgcrypt-prefix="$(LIBGCRYPT_PREFIX)" \
14af289e 475 --with-libgcrypt-libdir="$(LIBGCRYPT_LIBDIR)" \
aca54b39
LC
476 --with-nix-prefix="$(NIX_PREFIX)" \
477 --enable-daemon
0e993428 478
9d3fb6c7
LC
479# The self-contained tarball.
480guix-binary.%.tar.xz:
e71ad29d 481 $(AM_V_GEN)GUIX_PACKAGE_PATH= \
9d3fb6c7
LC
482 $(top_builddir)/pre-inst-env "$(GUILE)" \
483 "$(top_srcdir)/build-aux/make-binary-tarball.scm" "$*" "$@"
484
485
a8ac45b1
AK
486dist-hook: sync-descriptions gen-ChangeLog gen-AUTHORS
487dist-hook: assert-no-store-file-names
488
81f61c17 489distcheck-hook: assert-binaries-available assert-final-inputs-self-contained
e793178a 490
668d48a6 491sync-descriptions:
e71ad29d 492 $(AM_V_at)GUIX_PACKAGE_PATH= \
36c45230 493 $(top_builddir)/pre-inst-env guix lint --checkers=gnu-description
e793178a
LC
494
495gen-ChangeLog:
e71ad29d 496 $(AM_V_GEN)if test -d .git; then \
e793178a
LC
497 $(top_srcdir)/build-aux/gitlog-to-changelog \
498 > $(distdir)/cl-t; \
499 rm -f $(distdir)/ChangeLog; \
500 mv $(distdir)/cl-t $(distdir)/ChangeLog; \
501 fi
502
a8ac45b1 503gen-AUTHORS:
e71ad29d 504 $(AM_V_GEN)if test -d .git; then \
ac140f79
LC
505 rm -f "$(distdir)/AUTHORS"; \
506 $(top_builddir)/pre-inst-env "$(GUILE)" \
507 "$(top_srcdir)/build-aux/generate-authors.scm" \
508 "$(top_srcdir)" "$(distdir)/AUTHORS"; \
509 fi
a8ac45b1 510
834129e0 511# Make sure we're not shipping a file that embeds a local /gnu/store file name.
a463ffd9 512assert-no-store-file-names:
e71ad29d 513 $(AM_V_at)if grep -r --exclude=*.texi --exclude=*.info \
69e7322f
LC
514 --exclude=*.info-[0-9] --exclude=*.dot \
515 --exclude=*.eps --exclude-dir=bootstrap \
516 --exclude=guix-prettify.el \
76b3fbbc 517 --exclude=ChangeLog \
69e7322f 518 -E "$(storedir)/[a-z0-9]{32}-" $(distdir) ; \
a463ffd9
LC
519 then \
520 echo "error: store file names embedded in the distribution" >&2 ; \
521 exit 1 ; \
522 fi
523
56fbf262 524# Make sure hydra.gnu.org has the important binaries.
93cba30c 525assert-binaries-available: $(GOBJECTS)
e71ad29d 526 $(AM_V_at)$(top_builddir)/pre-inst-env "$(GUILE)" \
56fbf262
LC
527 "$(top_srcdir)/build-aux/check-available-binaries.scm"
528
81f61c17 529# Make sure the final inputs don't refer to bootstrap tools.
93cba30c 530assert-final-inputs-self-contained: $(GOBJECTS)
e71ad29d 531 $(AM_V_at)$(top_builddir)/pre-inst-env "$(GUILE)" \
81f61c17
LC
532 "$(top_srcdir)/build-aux/check-final-inputs-self-contained.scm"
533
89cbec89
LC
534# Compute the Hydra jobs and write them in the target file.
535hydra-jobs.scm: $(GOBJECTS)
536 $(AM_V_at)$(MKDIR_P) "`dirname "$@"`"
537 $(AM_V_GEN)$(top_builddir)/pre-inst-env "$(GUILE)" \
538 "$(top_srcdir)/build-aux/hydra/evaluate.scm" \
539 "$(top_srcdir)/build-aux/hydra/gnu-system.scm" > "$@.tmp"
28dee3d2 540 $(AM_V_at)mv "$@.tmp" "$@"
89cbec89 541
de6af327 542.PHONY: sync-descriptions gen-ChangeLog gen-AUTHORS clean-go make-go
56fbf262 543.PHONY: assert-no-store-file-names assert-binaries-available
81f61c17 544.PHONY: assert-final-inputs-self-contained
8c3d8894
ML
545
546## -------------- ##
547## Silent rules. ##
548## -------------- ##
549
550AM_V_DL = $(AM_V_DL_$(V))
551AM_V_DL_ = $(AM_V_DL_$(AM_DEFAULT_VERBOSITY))
552AM_V_DL_0 = @echo " DL " $@;
4c48878d
ML
553
554AM_V_DOT = $(AM_V_DOT_$(V))
555AM_V_DOT_ = $(AM_V_DOT_$(AM_DEFAULT_VERBOSITY))
556AM_V_DOT_0 = @echo " DOT " $@;
71ed439b 557
8dddedf7
ML
558AM_V_HELP2MAN = $(AM_V_HELP2MAN_$(V))
559AM_V_HELP2MAN_ = $(AM_V_HELP2MAN_$(AM_DEFAULT_VERBOSITY))
560AM_V_HELP2MAN_0 = @echo " HELP2MAN" $@;