Makefile.am 36 KB

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