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