projects/guix·blob version-1.4.0 · refs

1164 lines · 38.2 KiB

1# GNU Guix --- Functional package management for GNU
2# Copyright © 2012-2022 Ludovic Courtès <[email protected]>
3# Copyright © 2013 Andreas Enge <[email protected]>
4# Copyright © 2015, 2017 Alex Kost <[email protected]>
5# Copyright © 2016, 2018 Mathieu Lirzin <[email protected]>
6# Copyright © 2016, 2017, 2018, 2019 Mark H Weaver <[email protected]>
7# Copyright © 2017 Mathieu Othacehe <[email protected]>
8# Copyright © 2017 Leo Famulari <[email protected]>
9# Copyright © 2017 Ricardo Wurmus <[email protected]>
10# Copyright © 2017, 2020 Jan (janneke) Nieuwenhuizen <[email protected]>
11# Copyright © 2017 Arun Isaac <[email protected]>
12# Copyright © 2018 Nikita <[email protected]>
13# Copyright © 2018 Julien Lepiller <[email protected]>
14# Copyright © 2018 Oleg Pykhalov <[email protected]>
15# Copyright © 2018 Alex Vong <[email protected]>
16# Copyright © 2019 Efraim Flashner <[email protected]>
17# Copyright © 2021 Chris Marusich <[email protected]>
18# Copyright © 2021 Andrew Tropin <[email protected]>
19#
20# This file is part of GNU Guix.
21#
22# GNU Guix is free software; you can redistribute it and/or modify it
23# under the terms of the GNU General Public License as published by
24# the Free Software Foundation; either version 3 of the License, or (at
25# your option) any later version.
26#
27# GNU Guix is distributed in the hope that it will be useful, but
28# WITHOUT ANY WARRANTY; without even the implied warranty of
29# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30# GNU General Public License for more details.
31#
32# You should have received a copy of the GNU General Public License
33# along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
34
35MSGMERGE_UPDATE = @MSGMERGE@ --update
36
37bin_SCRIPTS = scripts/guix
38
39# Handle substitution of fully-expanded Autoconf variables.
40do_subst = $(SED) \
41 -e 's,[@]GUILE[@],$(GUILE),g' \
42 -e 's,[@]guilemoduledir[@],$(guilemoduledir),g' \
43 -e 's,[@]guileobjectdir[@],$(guileobjectdir),g' \
44 -e 's,[@]abs_top_builddir[@],$(abs_top_builddir),g' \
45 -e 's,[@]localedir[@],$(localedir),g'
46
47scripts/guix: scripts/guix.in Makefile
48 $(AM_V_at)rm -f $@ $@-t
49 $(AM_V_at)$(MKDIR_P) "$(@D)"
50 $(AM_V_GEN)$(do_subst) < "$(srcdir)/[email protected]" > "$@-t"
51 $(AM_V_at)chmod a+x,a-w "$@-t" && mv -f "$@-t" "$@"
52
53# This is our variant of the 'guile' executable, one that doesn't complain
54# about locales.
55pkglibexec_PROGRAMS = guile
56guile_SOURCES = gnu/packages/aux-files/guile-launcher.c
57guile_LDADD = $(GUILE_LIBS)
58guile_CFLAGS = $(GUILE_CFLAGS)
59
60# Have the 'guix' command refer to our 'guile'.
61install-exec-hook:
62 $(SED) -i "$(DESTDIR)$(bindir)/guix" \
63 -e 's,^#![[:graph:]]\+,#!$(pkglibexecdir)/guile,g'
64
65nodist_noinst_SCRIPTS = \
66 pre-inst-env \
67 test-env
68
69# Modules that are not compiled but are installed nonetheless, such as
70# build-side modules with unusual dependencies.
71MODULES_NOT_COMPILED = \
72 guix/build/po.scm \
73 guix/man-db.scm
74
75include gnu/local.mk
76include po/doc/local.mk
77
78MODULES = \
79 guix/base16.scm \
80 guix/base32.scm \
81 guix/base64.scm \
82 guix/ci.scm \
83 guix/cpio.scm \
84 guix/cpu.scm \
85 guix/deprecation.scm \
86 guix/docker.scm \
87 guix/records.scm \
88 guix/openpgp.scm \
89 guix/pki.scm \
90 guix/progress.scm \
91 guix/combinators.scm \
92 guix/memoization.scm \
93 guix/utils.scm \
94 guix/sets.scm \
95 guix/modules.scm \
96 guix/download.scm \
97 guix/discovery.scm \
98 guix/android-repo-download.scm \
99 guix/bzr-download.scm \
100 guix/git-download.scm \
101 guix/hg-download.scm \
102 guix/hash.scm \
103 guix/swh.scm \
104 guix/monads.scm \
105 guix/monad-repl.scm \
106 guix/gexp.scm \
107 guix/profiles.scm \
108 guix/serialization.scm \
109 guix/nar.scm \
110 guix/narinfo.scm \
111 guix/derivations.scm \
112 guix/grafts.scm \
113 guix/repl.scm \
114 guix/transformations.scm \
115 guix/inferior.scm \
116 guix/describe.scm \
117 guix/quirks.scm \
118 guix/channels.scm \
119 guix/gnu-maintenance.scm \
120 guix/self.scm \
121 guix/substitutes.scm \
122 guix/upstream.scm \
123 guix/licenses.scm \
124 guix/lint.scm \
125 guix/glob.scm \
126 guix/git.scm \
127 guix/git-authenticate.scm \
128 guix/graph.scm \
129 guix/cache.scm \
130 guix/cve.scm \
131 guix/workers.scm \
132 guix/least-authority.scm \
133 guix/read-print.scm \
134 guix/ipfs.scm \
135 guix/platform.scm \
136 guix/platforms/arm.scm \
137 guix/platforms/mips.scm \
138 guix/platforms/powerpc.scm \
139 guix/platforms/riscv.scm \
140 guix/platforms/x86.scm \
141 guix/build-system.scm \
142 guix/build-system/android-ndk.scm \
143 guix/build-system/ant.scm \
144 guix/build-system/cargo.scm \
145 guix/build-system/channel.scm \
146 guix/build-system/chicken.scm \
147 guix/build-system/clojure.scm \
148 guix/build-system/cmake.scm \
149 guix/build-system/dub.scm \
150 guix/build-system/dune.scm \
151 guix/build-system/elm.scm \
152 guix/build-system/emacs.scm \
153 guix/build-system/font.scm \
154 guix/build-system/go.scm \
155 guix/build-system/meson.scm \
156 guix/build-system/minify.scm \
157 guix/build-system/minetest.scm \
158 guix/build-system/asdf.scm \
159 guix/build-system/copy.scm \
160 guix/build-system/glib-or-gtk.scm \
161 guix/build-system/gnu.scm \
162 guix/build-system/guile.scm \
163 guix/build-system/haskell.scm \
164 guix/build-system/julia.scm \
165 guix/build-system/linux-module.scm \
166 guix/build-system/maven.scm \
167 guix/build-system/node.scm \
168 guix/build-system/perl.scm \
169 guix/build-system/pyproject.scm \
170 guix/build-system/python.scm \
171 guix/build-system/renpy.scm \
172 guix/build-system/ocaml.scm \
173 guix/build-system/qt.scm \
174 guix/build-system/waf.scm \
175 guix/build-system/r.scm \
176 guix/build-system/rakudo.scm \
177 guix/build-system/rebar.scm \
178 guix/build-system/ruby.scm \
179 guix/build-system/scons.scm \
180 guix/build-system/texlive.scm \
181 guix/build-system/trivial.scm \
182 guix/ftp-client.scm \
183 guix/http-client.scm \
184 guix/gnupg.scm \
185 guix/elf.scm \
186 guix/profiling.scm \
187 guix/store.scm \
188 guix/cvs-download.scm \
189 guix/svn-download.scm \
190 guix/colors.scm \
191 guix/i18n.scm \
192 guix/diagnostics.scm \
193 guix/ui.scm \
194 guix/status.scm \
195 guix/build/android-ndk-build-system.scm \
196 guix/build/ant-build-system.scm \
197 guix/build/download.scm \
198 guix/build/download-nar.scm \
199 guix/build/cargo-build-system.scm \
200 guix/build/cargo-utils.scm \
201 guix/build/chicken-build-system.scm \
202 guix/build/cmake-build-system.scm \
203 guix/build/dub-build-system.scm \
204 guix/build/dune-build-system.scm \
205 guix/build/elm-build-system.scm \
206 guix/build/emacs-build-system.scm \
207 guix/build/meson-build-system.scm \
208 guix/build/minify-build-system.scm \
209 guix/build/font-build-system.scm \
210 guix/build/go-build-system.scm \
211 guix/build/android-repo.scm \
212 guix/build/asdf-build-system.scm \
213 guix/build/bzr.scm \
214 guix/build/copy-build-system.scm \
215 guix/build/git.scm \
216 guix/build/hg.scm \
217 guix/build/glib-or-gtk-build-system.scm \
218 guix/build/gnu-bootstrap.scm \
219 guix/build/gnu-build-system.scm \
220 guix/build/gnu-dist.scm \
221 guix/build/guile-build-system.scm \
222 guix/build/maven-build-system.scm \
223 guix/build/minetest-build-system.scm \
224 guix/build/node-build-system.scm \
225 guix/build/perl-build-system.scm \
226 guix/build/pyproject-build-system.scm \
227 guix/build/python-build-system.scm \
228 guix/build/ocaml-build-system.scm \
229 guix/build/qt-build-system.scm \
230 guix/build/r-build-system.scm \
231 guix/build/renpy-build-system.scm \
232 guix/build/rakudo-build-system.scm \
233 guix/build/rebar-build-system.scm \
234 guix/build/ruby-build-system.scm \
235 guix/build/scons-build-system.scm \
236 guix/build/texlive-build-system.scm \
237 guix/build/waf-build-system.scm \
238 guix/build/haskell-build-system.scm \
239 guix/build/julia-build-system.scm \
240 guix/build/linux-module-build-system.scm \
241 guix/build/store-copy.scm \
242 guix/build/json.scm \
243 guix/build/pack.scm \
244 guix/build/utils.scm \
245 guix/build/union.scm \
246 guix/build/profiles.scm \
247 guix/build/compile.scm \
248 guix/build/cvs.scm \
249 guix/build/svn.scm \
250 guix/build/syscalls.scm \
251 guix/build/gremlin.scm \
252 guix/build/debug-link.scm \
253 guix/build/clojure-build-system.scm \
254 guix/build/clojure-utils.scm \
255 guix/build/emacs-utils.scm \
256 guix/build/java-utils.scm \
257 guix/build/lisp-utils.scm \
258 guix/build/meson-configuration.scm \
259 guix/build/maven/java.scm \
260 guix/build/maven/plugin.scm \
261 guix/build/maven/pom.scm \
262 guix/build/graft.scm \
263 guix/build/bournish.scm \
264 guix/build/qt-utils.scm \
265 guix/build/make-bootstrap.scm \
266 guix/search-paths.scm \
267 guix/packages.scm \
268 guix/import/cabal.scm \
269 guix/import/cpan.scm \
270 guix/import/cran.scm \
271 guix/import/crate.scm \
272 guix/import/egg.scm \
273 guix/import/elm.scm \
274 guix/import/elpa.scm \
275 guix/import/gem.scm \
276 guix/import/git.scm \
277 guix/import/github.scm \
278 guix/import/gnome.scm \
279 guix/import/gnu.scm \
280 guix/import/go.scm \
281 guix/import/hackage.scm \
282 guix/import/hexpm.scm \
283 guix/import/json.scm \
284 guix/import/kde.scm \
285 guix/import/launchpad.scm \
286 guix/import/minetest.scm \
287 guix/import/opam.scm \
288 guix/import/print.scm \
289 guix/import/pypi.scm \
290 guix/import/stackage.scm \
291 guix/import/texlive.scm \
292 guix/import/utils.scm \
293 guix/scripts.scm \
294 guix/scripts/download.scm \
295 guix/scripts/perform-download.scm \
296 guix/scripts/build.scm \
297 guix/scripts/archive.scm \
298 guix/scripts/import.scm \
299 guix/scripts/package.scm \
300 guix/scripts/install.scm \
301 guix/scripts/remove.scm \
302 guix/scripts/upgrade.scm \
303 guix/scripts/search.scm \
304 guix/scripts/show.scm \
305 guix/scripts/gc.scm \
306 guix/scripts/hash.scm \
307 guix/scripts/pack.scm \
308 guix/scripts/pull.scm \
309 guix/scripts/processes.scm \
310 guix/scripts/substitute.scm \
311 guix/scripts/authenticate.scm \
312 guix/scripts/refresh.scm \
313 guix/scripts/repl.scm \
314 guix/scripts/describe.scm \
315 guix/scripts/style.scm \
316 guix/scripts/system.scm \
317 guix/scripts/system/edit.scm \
318 guix/scripts/system/reconfigure.scm \
319 guix/scripts/system/search.scm \
320 guix/scripts/home.scm \
321 guix/scripts/home/edit.scm \
322 guix/scripts/home/import.scm \
323 guix/scripts/lint.scm \
324 guix/scripts/challenge.scm \
325 guix/scripts/import/crate.scm \
326 guix/scripts/import/cran.scm \
327 guix/scripts/import/egg.scm \
328 guix/scripts/import/elm.scm \
329 guix/scripts/import/elpa.scm \
330 guix/scripts/import/gem.scm \
331 guix/scripts/import/gnu.scm \
332 guix/scripts/import/go.scm \
333 guix/scripts/import/hackage.scm \
334 guix/scripts/import/hexpm.scm \
335 guix/scripts/import/json.scm \
336 guix/scripts/import/minetest.scm \
337 guix/scripts/import/opam.scm \
338 guix/scripts/import/pypi.scm \
339 guix/scripts/import/stackage.scm \
340 guix/scripts/import/texlive.scm \
341 guix/scripts/environment.scm \
342 guix/scripts/shell.scm \
343 guix/scripts/publish.scm \
344 guix/scripts/edit.scm \
345 guix/scripts/size.scm \
346 guix/scripts/git.scm \
347 guix/scripts/git/authenticate.scm \
348 guix/scripts/graph.scm \
349 guix/scripts/weather.scm \
350 guix/scripts/container.scm \
351 guix/scripts/container/exec.scm \
352 guix/scripts/deploy.scm \
353 guix/scripts/time-machine.scm \
354 guix.scm \
355 $(GNU_SYSTEM_MODULES)
356
357if HAVE_GUILE_SSH
358
359MODULES += \
360 guix/ssh.scm \
361 guix/remote.scm \
362 guix/scripts/copy.scm \
363 guix/store/ssh.scm
364
365endif HAVE_GUILE_SSH
366
367if HAVE_GUILE_AVAHI
368
369MODULES += \
370 guix/avahi.scm \
371 guix/scripts/discover.scm
372
373endif HAVE_GUILE_AVAHI
374
375if BUILD_DAEMON_OFFLOAD
376
377MODULES += \
378 guix/scripts/offload.scm
379
380endif BUILD_DAEMON_OFFLOAD
381
382# Scheme implementation of the build daemon and related functionality.
383STORE_MODULES = \
384 guix/store/database.scm \
385 guix/store/deduplication.scm \
386 guix/store/roots.scm
387
388MODULES += $(STORE_MODULES)
389
390# Internal modules with test suite support.
391dist_noinst_DATA = \
392 guix/tests.scm \
393 guix/tests/http.scm \
394 guix/tests/git.scm \
395 guix/tests/gnupg.scm
396
397# Auxiliary files for packages.
398AUX_FILES = \
399 gnu/packages/aux-files/chromium/master-preferences.json \
400 gnu/packages/aux-files/emacs/guix-emacs.el \
401 gnu/packages/aux-files/guix.vim \
402 gnu/packages/aux-files/linux-libre/6.0-arm.conf \
403 gnu/packages/aux-files/linux-libre/6.0-arm64.conf \
404 gnu/packages/aux-files/linux-libre/6.0-i686.conf \
405 gnu/packages/aux-files/linux-libre/6.0-x86_64.conf \
406 gnu/packages/aux-files/linux-libre/5.15-arm.conf \
407 gnu/packages/aux-files/linux-libre/5.15-arm64.conf \
408 gnu/packages/aux-files/linux-libre/5.15-i686.conf \
409 gnu/packages/aux-files/linux-libre/5.15-x86_64.conf \
410 gnu/packages/aux-files/linux-libre/5.10-arm.conf \
411 gnu/packages/aux-files/linux-libre/5.10-arm64.conf \
412 gnu/packages/aux-files/linux-libre/5.10-i686.conf \
413 gnu/packages/aux-files/linux-libre/5.10-x86_64.conf \
414 gnu/packages/aux-files/linux-libre/5.4-arm.conf \
415 gnu/packages/aux-files/linux-libre/5.4-arm64.conf \
416 gnu/packages/aux-files/linux-libre/5.4-i686.conf \
417 gnu/packages/aux-files/linux-libre/5.4-x86_64.conf \
418 gnu/packages/aux-files/linux-libre/4.19-arm.conf \
419 gnu/packages/aux-files/linux-libre/4.19-arm64.conf \
420 gnu/packages/aux-files/linux-libre/4.19-i686.conf \
421 gnu/packages/aux-files/linux-libre/4.19-x86_64.conf \
422 gnu/packages/aux-files/linux-libre/4.14-arm.conf \
423 gnu/packages/aux-files/linux-libre/4.14-i686.conf \
424 gnu/packages/aux-files/linux-libre/4.14-x86_64.conf \
425 gnu/packages/aux-files/linux-libre/4.9-i686.conf \
426 gnu/packages/aux-files/linux-libre/4.9-x86_64.conf \
427 gnu/packages/aux-files/pack-audit.c \
428 gnu/packages/aux-files/python/sanity-check.py \
429 gnu/packages/aux-files/python/sanity-check-next.py \
430 gnu/packages/aux-files/python/sitecustomize.py \
431 gnu/packages/aux-files/renpy/renpy.in \
432 gnu/packages/aux-files/run-in-namespace.c
433
434# Templates, examples.
435EXAMPLES = \
436 gnu/system/examples/asus-c201.tmpl \
437 gnu/system/examples/bare-bones.tmpl \
438 gnu/system/examples/bare-hurd.tmpl \
439 gnu/system/examples/beaglebone-black.tmpl \
440 gnu/system/examples/desktop.tmpl \
441 gnu/system/examples/lightweight-desktop.tmpl \
442 gnu/system/examples/docker-image.tmpl \
443 gnu/system/examples/vm-image.tmpl
444
445GOBJECTS = $(MODULES:%.scm=%.go) guix/config.go $(dist_noinst_DATA:%.scm=%.go)
446
447nobase_dist_guilemodule_DATA = \
448 guix/d3.v3.js \
449 guix/graph.js \
450 guix/store/schema.sql \
451 $(MODULES) $(MODULES_NOT_COMPILED) $(AUX_FILES) $(EXAMPLES) \
452 $(MISC_DISTRO_FILES)
453nobase_nodist_guilemodule_DATA = guix/config.scm
454nobase_nodist_guileobject_DATA = $(GOBJECTS)
455
456# Handy way to remove the .go files without removing all the rest.
457clean-go:
458 -$(RM) -f $(GOBJECTS)
459 @find . -path ./test-tmp -prune -o -name '*.go' -print | \
460 if test -t 1; then \
461 xargs -r echo -e "\033[31mwarning:\033[0m stray .go files:"; \
462 else \
463 xargs -r echo "warning: stray .go files:"; \
464 fi
465
466
467# Test extensions; has to be unconditional.
468TEST_EXTENSIONS = .scm .sh
469
470if CAN_RUN_TESTS
471
472SCM_TESTS = \
473 tests/accounts.scm \
474 tests/base16.scm \
475 tests/base32.scm \
476 tests/base64.scm \
477 tests/boot-parameters.scm \
478 tests/bournish.scm \
479 tests/builders.scm \
480 tests/build-emacs-utils.scm \
481 tests/build-utils.scm \
482 tests/cache.scm \
483 tests/challenge.scm \
484 tests/channels.scm \
485 tests/combinators.scm \
486 tests/containers.scm \
487 tests/cpan.scm \
488 tests/cpio.scm \
489 tests/cran.scm \
490 tests/crate.scm \
491 tests/cve.scm \
492 tests/debug-link.scm \
493 tests/derivations.scm \
494 tests/discovery.scm \
495 tests/egg.scm \
496 tests/elm.scm \
497 tests/elpa.scm \
498 tests/file-systems.scm \
499 tests/gem.scm \
500 tests/gexp.scm \
501 tests/git.scm \
502 tests/git-authenticate.scm \
503 tests/glob.scm \
504 tests/gnu-maintenance.scm \
505 tests/grafts.scm \
506 tests/graph.scm \
507 tests/gremlin.scm \
508 tests/hackage.scm \
509 tests/home-import.scm \
510 tests/home-services.scm \
511 tests/http-client.scm \
512 tests/import-git.scm \
513 tests/import-github.scm \
514 tests/import-utils.scm \
515 tests/inferior.scm \
516 tests/lint.scm \
517 tests/minetest.scm \
518 tests/modules.scm \
519 tests/monads.scm \
520 tests/nar.scm \
521 tests/networking.scm \
522 tests/opam.scm \
523 tests/openpgp.scm \
524 tests/packages.scm \
525 tests/pack.scm \
526 tests/pki.scm \
527 tests/print.scm \
528 tests/processes.scm \
529 tests/profiles.scm \
530 tests/publish.scm \
531 tests/pypi.scm \
532 tests/read-print.scm \
533 tests/records.scm \
534 tests/scripts.scm \
535 tests/search-paths.scm \
536 tests/services.scm \
537 tests/services/file-sharing.scm \
538 tests/services/configuration.scm \
539 tests/services/lightdm.scm \
540 tests/services/linux.scm \
541 tests/services/telephony.scm \
542 tests/sets.scm \
543 tests/size.scm \
544 tests/status.scm \
545 tests/store-database.scm \
546 tests/store-deduplication.scm \
547 tests/store-roots.scm \
548 tests/store.scm \
549 tests/substitute.scm \
550 tests/swh.scm \
551 tests/syscalls.scm \
552 tests/system.scm \
553 tests/style.scm \
554 tests/texlive.scm \
555 tests/transformations.scm \
556 tests/ui.scm \
557 tests/union.scm \
558 tests/upstream.scm \
559 tests/utils.scm \
560 tests/uuid.scm \
561 tests/workers.scm
562
563if HAVE_GUILE_LIB
564SCM_TESTS += tests/go.scm
565else
566EXTRA_DIST += tests/go.scm
567endif
568
569if BUILD_DAEMON_OFFLOAD
570SCM_TESTS += tests/offload.scm
571else
572EXTRA_DIST += tests/offload.scm
573endif
574
575SH_TESTS = \
576 tests/guix-build.sh \
577 tests/guix-build-branch.sh \
578 tests/guix-download.sh \
579 tests/guix-gc.sh \
580 tests/guix-git-authenticate.sh \
581 tests/guix-hash.sh \
582 tests/guix-pack.sh \
583 tests/guix-pack-localstatedir.sh \
584 tests/guix-pack-relocatable.sh \
585 tests/guix-package.sh \
586 tests/guix-package-aliases.sh \
587 tests/guix-package-net.sh \
588 tests/guix-style.sh \
589 tests/guix-system.sh \
590 tests/guix-home.sh \
591 tests/guix-archive.sh \
592 tests/guix-authenticate.sh \
593 tests/guix-environment.sh \
594 tests/guix-environment-container.sh \
595 tests/guix-shell.sh \
596 tests/guix-shell-export-manifest.sh \
597 tests/guix-graph.sh \
598 tests/guix-describe.sh \
599 tests/guix-repl.sh \
600 tests/guix-lint.sh
601
602TESTS = $(SCM_TESTS) $(SH_TESTS)
603
604AM_TESTS_ENVIRONMENT = abs_top_srcdir="$(abs_top_srcdir)" GUILE_AUTO_COMPILE=0
605
606SCM_LOG_DRIVER = \
607 $(top_builddir)/test-env --quiet-stderr \
608 $(GUILE) --no-auto-compile -e main \
609 $(top_srcdir)/build-aux/test-driver.scm
610
611AM_SCM_LOG_DRIVER_FLAGS = --brief=yes
612
613SH_LOG_COMPILER = $(top_builddir)/test-env $(SHELL)
614AM_SH_LOG_FLAGS = -x -e
615
616# Make sure `tests/guix-gc.sh' runs last, after all the others. Otherwise it
617# could end up removing files from the store while they are being used by
618# other instances of the daemon.
619tests/guix-gc.log: \
620 $(patsubst %.sh,%.log,$(filter-out tests/guix-gc.sh,$(SH_TESTS))) \
621 $(SCM_TESTS:%.scm=%.log)
622
623else !CAN_RUN_TESTS
624
625TESTS =
626SH_TESTS =
627SCM_TESTS =
628
629# Automake always generates a 'check' target, so better not override it.
630check-local:
631 @echo
632 @echo "Cannot run tests because file name limits would be exceeded." >&2
633 @echo "Look for 'length' in the 'config.log' file for details." >&2
634 @echo
635 @exit 1
636
637endif !CAN_RUN_TESTS
638
639check-system: $(GOBJECTS)
640 $(AM_V_at)$(top_builddir)/pre-inst-env \
641 guix build -m $(top_srcdir)/etc/system-tests.scm -K
642
643# Public keys used to sign substitutes.
644dist_pkgdata_DATA = \
645 etc/substitutes/berlin.guix.gnu.org.pub \
646 etc/substitutes/ci.guix.gnu.org.pub \
647 etc/substitutes/ci.guix.info.pub \
648 etc/substitutes/bordeaux.guix.gnu.org.pub
649
650# Bash completion file.
651dist_bashcompletion_DATA = etc/completion/bash/guix \
652 etc/completion/bash/guix-daemon
653
654# Zsh completion file.
655dist_zshcompletion_DATA = etc/completion/zsh/_guix
656
657# Fish completion file.
658dist_fishcompletion_DATA = etc/completion/fish/guix.fish
659
660# SELinux policy
661nodist_selinux_policy_DATA = etc/guix-daemon.cil
662
663EXTRA_DIST += \
664 .dir-locals.el \
665 .guix-authorizations \
666 .guix-channel \
667 CODE-OF-CONDUCT \
668 HACKING \
669 ROADMAP \
670 TODO \
671 bootstrap \
672 build-aux/build-self.scm \
673 build-aux/check-channel-news.scm \
674 build-aux/check-final-inputs-self-contained.scm \
675 build-aux/compile-all.scm \
676 build-aux/compile-as-derivation.scm \
677 build-aux/config.rpath \
678 build-aux/convert-xref.scm \
679 build-aux/cuirass/hurd-manifest.scm \
680 build-aux/generate-authors.scm \
681 build-aux/test-driver.scm \
682 build-aux/update-NEWS.scm \
683 build-aux/update-guix-package.scm \
684 doc/build.scm \
685 etc/disarchive-manifest.scm \
686 etc/guix-install.sh \
687 etc/historical-authorizations \
688 etc/news.scm \
689 etc/release-manifest.scm \
690 etc/source-manifest.scm \
691 etc/system-tests.scm \
692 etc/time-travel-manifest.scm \
693 scripts/guix.in \
694 tests/cve-sample.json \
695 tests/keys/civodul.pub \
696 tests/keys/dsa.pub \
697 tests/keys/ed25519-2.pub \
698 tests/keys/ed25519-2.sec \
699 tests/keys/ed25519-3.pub \
700 tests/keys/ed25519-3.sec \
701 tests/keys/ed25519.pub \
702 tests/keys/ed25519.sec \
703 tests/keys/rsa.pub \
704 tests/keys/signing-key.pub \
705 tests/keys/signing-key.sec \
706 tests/test.drv \
707 $(TESTS)
708
709if !BUILD_DAEMON_OFFLOAD
710
711EXTRA_DIST += \
712 guix/scripts/offload.scm
713
714endif !BUILD_DAEMON_OFFLOAD
715
716
717CLEANFILES = \
718 $(bin_SCRIPTS) \
719 $(GOBJECTS) \
720 $(SCM_TESTS:tests/%.scm=%.log)
721
722# Unset 'GUILE_LOAD_COMPILED_PATH' altogether while compiling. Otherwise, if
723# $GUILE_LOAD_COMPILED_PATH contains $(moduledir), we may find .go files in
724# there that are newer than the local .scm files (for instance because the
725# user ran 'make install' recently). When that happens, we end up loading
726# those previously-installed .go files, which may be stale, thereby breaking
727# the whole thing. Likewise, set 'XDG_CACHE_HOME' to avoid loading possibly
728# stale files from ~/.cache/guile/ccache.
729%.go: make-go ; @:
730make-go: make-core-go make-packages-go make-system-go make-cli-go
731
732# Define a rule to build a subset of the .go files.
733define guile-compilation-rule
734
735$(1): $(2)
736 $(AM_V_at)echo "Compiling Scheme modules..." ; \
737 unset GUILE_LOAD_COMPILED_PATH ; \
738 XDG_CACHE_HOME=/nowhere \
739 host=$(host) srcdir="$(top_srcdir)" \
740 $(top_builddir)/pre-inst-env \
741 $(GUILE) -L "$(top_builddir)" -L "$(top_srcdir)" \
742 --no-auto-compile \
743 -s "$(top_srcdir)"/build-aux/compile-all.scm \
744 --total $(words $(MODULES)) \
745 --completed $(3) \
746 $$(filter %.scm,$$^)
747
748endef
749
750# Split compilation in several steps, each of which building a subset of
751# $(MODULES). The main goal is to reduce peak memory consumption, as reported
752# in <https://issues.guix.gnu.org/48963>. Each 'eval' call below creates a
753# 'make-*-go' phony target that builds the corresponding subset.
754
755first_half := \
756 gnu/packages/a% gnu/packages/b% gnu/packages/c% gnu/packages/d% \
757 gnu/packages/e% gnu/packages/f% gnu/packages/g% gnu/packages/h% \
758 gnu/packages/i% gnu/packages/j% gnu/packages/k% gnu/packages/l%
759
760MODULES_CORE := guix.scm $(filter-out guix/scripts/%,$(filter guix/%,$(MODULES)))
761MODULES_PACKAGES1 := $(filter $(first_half),$(MODULES))
762MODULES_PACKAGES2 := $(filter-out $(first_half),$(filter gnu/packages/%,$(MODULES)))
763MODULES_PACKAGES := $(MODULES_PACKAGES1) $(MODULES_PACKAGES2)
764MODULES_SYSTEM := gnu.scm $(filter-out gnu/packages/%,$(filter gnu/%,$(MODULES)))
765MODULES_CLI := $(filter guix/scripts/%,$(MODULES))
766MODULES_PO := guix/build/po.scm
767
768$(eval $(call guile-compilation-rule,make-core-go, \
769 $(MODULES_CORE) guix/config.scm $(dist_noinst_DATA), \
770 0))
771.PHONY: make-core-go
772
773$(eval $(call guile-compilation-rule,make-packages1-go, \
774 $(MODULES_PACKAGES1) make-core-go, \
775 $(words $(MODULES_CORE))))
776.PHONY: make-packages1-go
777
778$(eval $(call guile-compilation-rule,make-packages2-go, \
779 $(MODULES_PACKAGES2) make-core-go make-packages1-go, \
780 $(words $(MODULES_CORE) $(MODULES_PACKAGES1))))
781.PHONY: make-packages2-go
782
783make-packages-go: make-packages1-go make-packages2-go
784.PHONY: make-packages-go
785
786$(eval $(call guile-compilation-rule,make-system-go, \
787 $(MODULES_SYSTEM) make-packages-go make-core-go, \
788 $(words $(MODULES_CORE) $(MODULES_PACKAGES))))
789.PHONY: make-system-go
790
791$(eval $(call guile-compilation-rule,make-cli-go, \
792 $(MODULES_CLI) make-system-go make-packages-go make-core-go, \
793 $(words $(MODULES_CORE) $(MODULES_PACKAGES) $(MODULES_SYSTEM))))
794.PHONY: make-cli-go
795
796$(eval $(call guile-compilation-rule,guix/build/po.go, \
797 $(MODULES_PO), \
798 0))
799
800SUFFIXES = .go
801
802# Make sure source files are installed first, so that the mtime of
803# installed compiled files is greater than that of installed source
804# files. See
805# <http://lists.gnu.org/archive/html/guile-devel/2010-07/msg00125.html>
806# for details.
807guix_install_go_files = install-nobase_nodist_guileobjectDATA
808$(guix_install_go_files): install-nobase_dist_guilemoduleDATA
809
810# The above trick doesn't work for 'config.go' because both 'config.scm' and
811# 'config.go' are listed in $(nobase_nodist_guileobject_DATA). Thus, give it
812# special treatment.
813install-data-hook:
814 touch "$(DESTDIR)$(guileobjectdir)/guix/config.go"
815
816# Commit corresponding to the 'v1.0.0' tag.
817commit_v1_0_0 = 6298c3ffd9654d3231a6f25390b056483e8f407c
818
819# Introduction of the 'guix' channel. Keep in sync with (guix channels)!
820channel_intro_commit = 9edb3f66fd807b096b48283debdcddccfea34bad
821channel_intro_signer = BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA
822
823# Authenticate the current Git checkout by checking signatures on every commit.
824GUIX_GIT_KEYRING = origin/keyring
825authenticate:
826 $(AM_V_at)echo "Authenticating Git checkout..." ; \
827 guix git authenticate \
828 --keyring=$(GUIX_GIT_KEYRING) \
829 --cache-key=channels/guix --stats \
830 "$(channel_intro_commit)" "$(channel_intro_signer)"
831
832# Assuming Guix is already installed and the daemon is up and running, this
833# rule builds from $(srcdir), creating and building derivations.
834as-derivation:
835 $(AM_V_at)echo "Building Guix in Guix..." ; \
836 $(GUILE) --no-auto-compile \
837 "$(top_srcdir)/build-aux/compile-as-derivation.scm" \
838 "$(abs_top_srcdir)"
839
840SUBDIRS = po/guix po/packages
841BUILT_SOURCES =
842
843include doc/local.mk
844
845if BUILD_DAEMON
846
847include nix/local.mk
848
849endif BUILD_DAEMON
850
851ACLOCAL_AMFLAGS = -I m4
852
853# Pass an explicit '--localstatedir' so that configure does not error out if
854# it finds an existing installation with a different localstatedir. Inherit
855# 'ac_cv_guix_test_root' so that "make check" in $(distdir) does not have to
856# repopulate the whole store, and to make sure $(GUIX_TEST_ROOT) is short
857# enough for shebangs.
858AM_DISTCHECK_CONFIGURE_FLAGS = \
859 --localstatedir="$$dc_install_base/var" \
860 --with-libgcrypt-prefix="$(LIBGCRYPT_PREFIX)" \
861 --with-libgcrypt-libdir="$(LIBGCRYPT_LIBDIR)" \
862 --enable-daemon \
863 ac_cv_guix_test_root="$(GUIX_TEST_ROOT)"
864
865# The self-contained tarball.
866guix-binary.%.tar.xz:
867 $(AM_V_GEN)GUIX_PACKAGE_PATH= \
868 tarball=`$(top_builddir)/pre-inst-env guix pack -C xz \
869 --fallback \
870 -s "$*" --localstatedir --profile-name=current-guix \
871 guix` ; \
872 cp "$$tarball" "[email protected]" ; mv "[email protected]" "$@"
873
874
875# The dependency on doc-pot-update is to generate the .pot files, which are
876# not checked in.
877dist: doc-pot-update
878
879dist-hook: gen-ChangeLog gen-AUTHORS gen-tarball-version
880dist-hook: assert-no-store-file-names
881
882distcheck-hook: assert-binaries-available assert-final-inputs-self-contained
883
884EXTRA_DIST += $(top_srcdir)/.version
885BUILT_SOURCES += $(top_srcdir)/.version
886$(top_srcdir)/.version: config.status
887 $(AM_V_GEN)echo $(VERSION) > "$@-t" && mv "$@-t" "$@"
888
889gen-tarball-version:
890 echo $(VERSION) > "$(distdir)/.tarball-version"
891
892gen-ChangeLog:
893 $(AM_V_GEN)if test -d .git; then \
894 $(top_srcdir)/build-aux/gitlog-to-changelog \
895 > $(distdir)/ChangeLog.tmp; \
896 rm -f $(distdir)/ChangeLog; \
897 mv $(distdir)/ChangeLog.tmp $(distdir)/ChangeLog; \
898 fi
899
900gen-AUTHORS:
901 $(AM_V_GEN)if test -d .git; then \
902 rm -f "$(distdir)/AUTHORS"; \
903 $(top_builddir)/pre-inst-env "$(GUILE)" \
904 "$(top_srcdir)/build-aux/generate-authors.scm" \
905 "$(top_srcdir)" "$(distdir)/AUTHORS"; \
906 fi
907
908# Like 'dist', but regenerate 'configure' so we get an up-to-date
909# 'PACKAGE_VERSION' string. (In Gnulib, 'GNUmakefile' has a special trick to
910# do that whenever a 'dist' target is used.)
911dist-with-updated-version:
912 @echo "Running './bootstrap' for new version string..."
913 $(top_srcdir)/bootstrap
914 $(MAKE) $(AM_MAKEFLAGS) $(top_srcdir)/.version dist
915
916.PHONY: dist-with-updated-version
917
918
919#
920# Release management.
921#
922
923releasedir = release-$(PACKAGE_VERSION)
924
925PACKAGE_FULL_TARNAME = $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)
926
927# List of source tarballs produced. This must be kept in sync with the
928# 'dist-' options of 'AM_INIT_AUTOMAKE' in 'configure.ac'.
929SOURCE_TARBALLS = \
930 $(foreach ext,tar.gz,$(PACKAGE_FULL_TARNAME).$(ext))
931
932# Systems supported by Guix.
933SUPPORTED_SYSTEMS ?= x86_64-linux i686-linux armhf-linux aarch64-linux \
934 powerpc64le-linux
935
936# Guix binary tarballs.
937BINARY_TARBALLS = \
938 $(foreach system,$(SUPPORTED_SYSTEMS),guix-binary.$(system).tar.xz)
939
940# Systems supported by Guix System.
941GUIX_SYSTEM_SUPPORTED_SYSTEMS ?= x86_64-linux i686-linux
942
943# Systems for which we build Guix VMs.
944GUIX_SYSTEM_VM_SYSTEMS ?= x86_64-linux
945
946# Prefix of the Guix installation image file name.
947GUIX_SYSTEM_IMAGE_BASE = guix-system-install-$(PACKAGE_VERSION)
948
949# Prefix of the Guix VM image file name.
950GUIX_SYSTEM_VM_IMAGE_BASE = guix-system-vm-image-$(PACKAGE_VERSION)
951
952# Flags for 'guix system vm-image'. By default create a VM image that appears
953# to have a 20G hard disk.
954GUIX_SYSTEM_VM_IMAGE_FLAGS ?= --image-size=30G
955
956# Return the sequence of '-s' flags for the given systems.
957system_flags = $(foreach system,$(1),-s $(system))
958
959# The release process works in several phases:
960#
961# 0. We assume the developer created a 'vX.Y.Z' tag.
962# 1. Build the source tarball.
963# 2. Update the 'guix' package so that it corresponds to the 'vX.Y.Z' tag.
964# 3. Build the binary tarballs for that 'guix' package.
965# 4. Update the 'guix' package again.
966# 5. Build the installation and VM images. The images will run 'guix'
967# corresponding to 'vX.Y.Z' + 1 commit, and they will install 'vX.Y.Z'.
968#
969# This 'release' target takes care of everything and copies the resulting
970# files to $(releasedir).
971#
972# XXX: Depend on 'dist' rather than 'distcheck' to work around the Gettext
973# issue described at <https://savannah.gnu.org/bugs/index.php?51027>.
974release: dist-with-updated-version all
975 @if ! git diff-index --quiet HEAD; then \
976 echo "There are uncommitted changes; stopping." >&2 ; \
977 exit 1 ; \
978 fi
979 $(MKDIR_P) "$(releasedir)"
980 rm -f "$(releasedir)"/*
981 mv $(SOURCE_TARBALLS) "$(releasedir)"
982# Bump the Guix package version and build it.
983 GUIX_ALLOW_ME_TO_USE_PRIVATE_COMMIT=yes \
984 $(top_builddir)/pre-inst-env "$(GUILE)" \
985 $(top_srcdir)/build-aux/update-guix-package.scm \
986 "`git rev-parse HEAD`" "$(PACKAGE_VERSION)"
987 git add $(top_srcdir)/gnu/packages/package-management.scm
988 git commit -m "gnu: guix: Update to $(PACKAGE_VERSION)."
989 $(top_builddir)/pre-inst-env guix build guix \
990 $(call system_flags,$(SUPPORTED_SYSTEMS)) \
991 -v1 --no-grafts --fallback
992# Generate the binary release tarballs.
993 rm -f $(BINARY_TARBALLS)
994 $(MAKE) $(BINARY_TARBALLS)
995 for system in $(SUPPORTED_SYSTEMS) ; do \
996 mv "guix-binary.$$system.tar.xz" \
997 "$(releasedir)/guix-binary-$(PACKAGE_VERSION).$$system.tar.xz" ; \
998 done
999# Build 'current-guix' to speed things up for the next step.
1000 $(top_builddir)/pre-inst-env guix build \
1001 -e '((@ (gnu packages package-management) current-guix))' \
1002 $(call system_flags,$(GUIX_SYSTEM_SUPPORTED_SYSTEMS)) \
1003 -v1 --no-grafts --fallback
1004# Generate the ISO installation images.
1005 for system in $(GUIX_SYSTEM_SUPPORTED_SYSTEMS) ; do \
1006 GUIX_DISPLAYED_VERSION="`git describe --match=v* | sed -'es/^v//'`" ; \
1007 image=`$(top_builddir)/pre-inst-env \
1008 guix system image -t iso9660 \
1009 --label="GUIX_$${system}_$(VERSION)" \
1010 --system=$$system --fallback \
1011 gnu/system/install.scm` ; \
1012 if [ ! -f "$$image" ] ; then \
1013 echo "failed to produce Guix installation image for $$system" >&2 ; \
1014 exit 1 ; \
1015 fi ; \
1016 cp "$$image" "$(releasedir)/$(GUIX_SYSTEM_IMAGE_BASE).$$system.iso.tmp" ; \
1017 mv "$(releasedir)/$(GUIX_SYSTEM_IMAGE_BASE).$$system.iso.tmp" \
1018 "$(releasedir)/$(GUIX_SYSTEM_IMAGE_BASE).$$system.iso" ; \
1019 done
1020# Generate the VM images.
1021 for system in $(GUIX_SYSTEM_VM_SYSTEMS) ; do \
1022 GUIX_DISPLAYED_VERSION="`git describe --match=v* | sed -'es/^v//'`" ; \
1023 image=`$(top_builddir)/pre-inst-env \
1024 guix system image -t qcow2 $(GUIX_SYSTEM_VM_IMAGE_FLAGS) \
1025 --save-provenance \
1026 --system=$$system --fallback \
1027 gnu/system/examples/vm-image.tmpl` ; \
1028 if [ ! -f "$$image" ] ; then \
1029 echo "failed to produce Guix VM image for $$system" >&2 ; \
1030 exit 1 ; \
1031 fi ; \
1032 cp "$$image" "$(releasedir)/$(GUIX_SYSTEM_VM_IMAGE_BASE).$$system.qcow2"; \
1033 done
1034 @echo
1035 @echo "Congratulations! All the release files are now in $(releasedir)."
1036 @echo
1037
1038update-guix-package:
1039 git rev-parse HEAD
1040 $(top_builddir)/pre-inst-env "$(GUILE)" \
1041 $(top_srcdir)/build-aux/update-guix-package.scm \
1042 "`git rev-parse HEAD`"
1043
1044# Location of a checkout of <git://git.savannah.gnu.org/guix/maintenance.git>.
1045# Package data from this checkout is used by 'update-NEWS.scm'.
1046GUIX_MAINTENANCE_DIRECTORY ?= $(top_srcdir)/../guix-maintenance
1047
1048update-NEWS: $(GOBJECTS)
1049 $(top_builddir)/pre-inst-env "$(GUILE)" \
1050 $(top_srcdir)/build-aux/update-NEWS.scm \
1051 $(top_srcdir)/NEWS "$(GUIX_MAINTENANCE_DIRECTORY)/data"
1052
1053# Make sure we're not shipping a file that embeds a local /gnu/store file name.
1054assert-no-store-file-names:
1055 $(AM_V_at)if grep -r --exclude=*.texi --exclude=*.info \
1056 --exclude=*.info-[0-9] --exclude=*.dot \
1057 --exclude=*.eps --exclude-dir=bootstrap \
1058 --exclude=guix-manual.pot --exclude=guix-manual.*.po \
1059 --exclude=guix-cookbook.pot --exclude=guix-cookbook.*.po \
1060 --exclude=guix-prettify.el \
1061 --exclude=ChangeLog* \
1062 --exclude=binutils-boot-2.20*.patch \
1063 -E "$(storedir)/[a-z0-9]{32}-" $(distdir) ; \
1064 then \
1065 echo "error: store file names embedded in the distribution" >&2 ; \
1066 exit 1 ; \
1067 fi
1068
1069# Make sure important substitutes are available. Check only the primary
1070# server so that '--display-missing' doesn't print two lists.
1071assert-binaries-available: $(GOBJECTS)
1072 $(AM_V_at)$(top_builddir)/pre-inst-env \
1073 guix weather -m "$(top_srcdir)/etc/release-manifest.scm" \
1074 --substitute-urls="https://ci.guix.gnu.org" \
1075 --display-missing
1076
1077# Make sure the final inputs don't refer to bootstrap tools.
1078assert-final-inputs-self-contained: $(GOBJECTS)
1079 $(AM_V_at)$(top_builddir)/pre-inst-env "$(GUILE)" \
1080 "$(top_srcdir)/build-aux/check-final-inputs-self-contained.scm"
1081
1082# Validate channel news.
1083check-channel-news: $(GOBJECTS)
1084 $(AM_V_at)$(top_builddir)/pre-inst-env "$(GUILE)" \
1085 "$(top_srcdir)/build-aux/check-channel-news.scm"
1086
1087# Compute the Cuirass jobs.
1088cuirass-jobs: $(GOBJECTS)
1089 rm -rf "$@"
1090 $(AM_V_at)$(MKDIR_P) "$@"
1091 $(AM_V_GEN)$(top_builddir)/pre-inst-env "$(GUILE)" \
1092 "$(top_srcdir)/build-aux/cuirass/evaluate.scm" "$@"
1093
1094.PHONY: gen-ChangeLog gen-AUTHORS gen-tarball-version
1095.PHONY: assert-no-store-file-names assert-binaries-available
1096.PHONY: assert-final-inputs-self-contained check-channel-news
1097.PHONY: clean-go make-go as-derivation authenticate
1098.PHONY: update-guix-package update-NEWS cuirass-jobs release
1099
1100# Downloading up-to-date PO files.
1101
1102WEBLATE_REPO = https://framagit.org/tyreunom/guix-translations
1103
1104# Shallow clone the Git repository behind Weblate and copy files from it if
1105# they contain at least one translation, and they are well-formed (Scheme
1106# format only), warn otherwise. Copied files are converted to a canonical
1107# form.
1108download-po:
1109 dir=$$(mktemp -d); \
1110 git clone --depth 1 "$(WEBLATE_REPO)" "$$dir/translations" && \
1111 for domain in po/doc po/guix po/packages; do \
1112 for po in "$$dir/translations/$$domain"/*.po; do \
1113 translated=$$(LANG=en_US.UTF-8 msgfmt --statistics "$$po" 2>&1 | cut -f1 -d' '); \
1114 untranslated=$$(LANG=en_US.UTF-8 msgfmt --statistics "$$po" 2>&1 | rev | cut -f3 -d' ' | rev); \
1115 untranslated=$${untranslated:-0}; \
1116 total=$$(($$translated+$$untranslated)); \
1117 target=$$(basename "$$po"); \
1118 target="$$domain/$$target"; \
1119 msgfmt -c "$$po"; \
1120 if msgfmt -c "$$po" && [ "$$translated" != "0" ] && ([ "$$domain" != "po/doc" ] || [ "$$translated" -gt $$(($$total/10)) ] || [ -f $$target ]); then \
1121 msgfilter --no-wrap -i "$$po" cat > "$$po".tmp; \
1122 mv "$$po".tmp "$$target"; \
1123 echo "copied $$target."; \
1124 else \
1125 echo "WARN: $$target ($$translated translated messages ($$((translated/total*100))%)) was not added/updated."; \
1126 fi; \
1127 done; \
1128 done; \
1129 for po in po/doc/*.po; do \
1130 translated=$$(LANG=en_US.UTF-8 msgfmt --statistics "$$po" 2>&1 | cut -f1 -d' '); \
1131 untranslated=$$(LANG=en_US.UTF-8 msgfmt --statistics "$$po" 2>&1 | rev | cut -f3 -d' ' | rev); \
1132 untranslated=$${untranslated:-0}; \
1133 total=$$(($$translated + $$untranslated)); \
1134 if [ "$$translated" -lt "$$(($$total/20))" ]; then \
1135 echo "WARN: $$po was removed because it is below the 5% threshold: $$((translated/total*100))%"; \
1136 rm $$po; \
1137 fi; \
1138 done; \
1139 rm -rf "$$dir"
1140.PHONY: download-po
1141
1142## -------------- ##
1143## Silent rules. ##
1144## -------------- ##
1145
1146AM_V_DL = $(AM_V_DL_$(V))
1147AM_V_DL_ = $(AM_V_DL_$(AM_DEFAULT_VERBOSITY))
1148AM_V_DL_0 = @echo " DL " $@;
1149
1150AM_V_DOT = $(AM_V_DOT_$(V))
1151AM_V_DOT_ = $(AM_V_DOT_$(AM_DEFAULT_VERBOSITY))
1152AM_V_DOT_0 = @echo " DOT " $@;
1153
1154AM_V_HELP2MAN = $(AM_V_HELP2MAN_$(V))
1155AM_V_HELP2MAN_ = $(AM_V_HELP2MAN_$(AM_DEFAULT_VERBOSITY))
1156AM_V_HELP2MAN_0 = @echo " HELP2MAN" $@;
1157
1158AM_V_PO4A = $(AM_V_PO4A_$(V))
1159AM_V_PO4A_ = $(AM_V_PO4A_$(AM_DEFAULT_VERBOSITY))
1160AM_V_PO4A_0 = @echo " PO4A" $@;
1161
1162AM_V_POXREF = $(AM_V_POXREF_$(V))
1163AM_V_POXREF_ = $(AM_V_POXREF_$(AM_DEFAULT_VERBOSITY))
1164AM_V_POXREF_0 = @echo " POXREF" $@;