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