Makefile.am 34 KB

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