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