You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

304 lines
9.6 KiB

  1. # GNU Guix --- Functional package management for GNU
  2. # Copyright © 2012, 2013 Ludovic Courtès <ludo@gnu.org>
  3. # Copyright © 2013 Andreas Enge <andreas@enge.fr>
  4. #
  5. # This file is part of GNU Guix.
  6. #
  7. # GNU Guix is free software; you can redistribute it and/or modify it
  8. # under the terms of the GNU General Public License as published by
  9. # the Free Software Foundation; either version 3 of the License, or (at
  10. # your option) any later version.
  11. #
  12. # GNU Guix is distributed in the hope that it will be useful, but
  13. # WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. # GNU General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU General Public License
  18. # along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  19. bin_SCRIPTS = \
  20. guix-build \
  21. guix-download \
  22. guix-import \
  23. guix-package \
  24. guix-gc
  25. MODULES = \
  26. guix/base32.scm \
  27. guix/utils.scm \
  28. guix/derivations.scm \
  29. guix/download.scm \
  30. guix/gnu-maintenance.scm \
  31. guix/licenses.scm \
  32. guix/build-system.scm \
  33. guix/build-system/gnu.scm \
  34. guix/build-system/trivial.scm \
  35. guix/ftp-client.scm \
  36. guix/store.scm \
  37. guix/ui.scm \
  38. guix/build/download.scm \
  39. guix/build/gnu-build-system.scm \
  40. guix/build/utils.scm \
  41. guix/build/union.scm \
  42. guix/packages.scm \
  43. guix/snix.scm \
  44. guix.scm \
  45. gnu/packages.scm \
  46. gnu/packages/acl.scm \
  47. gnu/packages/algebra.scm \
  48. gnu/packages/aspell.scm \
  49. gnu/packages/attr.scm \
  50. gnu/packages/autotools.scm \
  51. gnu/packages/base.scm \
  52. gnu/packages/bash.scm \
  53. gnu/packages/bdb.scm \
  54. gnu/packages/bdw-gc.scm \
  55. gnu/packages/bison.scm \
  56. gnu/packages/bootstrap.scm \
  57. gnu/packages/check.scm \
  58. gnu/packages/compression.scm \
  59. gnu/packages/cpio.scm \
  60. gnu/packages/cyrus-sasl.scm \
  61. gnu/packages/dejagnu.scm \
  62. gnu/packages/ddrescue.scm \
  63. gnu/packages/ed.scm \
  64. gnu/packages/emacs.scm \
  65. gnu/packages/file.scm \
  66. gnu/packages/flex.scm \
  67. gnu/packages/freetype.scm \
  68. gnu/packages/gawk.scm \
  69. gnu/packages/gdb.scm \
  70. gnu/packages/gdbm.scm \
  71. gnu/packages/gettext.scm \
  72. gnu/packages/ghostscript.scm \
  73. gnu/packages/glib.scm \
  74. gnu/packages/global.scm \
  75. gnu/packages/gnupg.scm \
  76. gnu/packages/gnutls.scm \
  77. gnu/packages/gperf.scm \
  78. gnu/packages/groff.scm \
  79. gnu/packages/gsasl.scm \
  80. gnu/packages/guile.scm \
  81. gnu/packages/help2man.scm \
  82. gnu/packages/icu4c.scm \
  83. gnu/packages/idutils.scm \
  84. gnu/packages/indent.scm \
  85. gnu/packages/irssi.scm \
  86. gnu/packages/ld-wrapper.scm \
  87. gnu/packages/less.scm \
  88. gnu/packages/libapr.scm \
  89. gnu/packages/libevent.scm \
  90. gnu/packages/libffi.scm \
  91. gnu/packages/libidn.scm \
  92. gnu/packages/libjpeg.scm \
  93. gnu/packages/libpng.scm \
  94. gnu/packages/libsigsegv.scm \
  95. gnu/packages/libtiff.scm \
  96. gnu/packages/libunistring.scm \
  97. gnu/packages/libusb.scm \
  98. gnu/packages/linux.scm \
  99. gnu/packages/lout.scm \
  100. gnu/packages/lsh.scm \
  101. gnu/packages/m4.scm \
  102. gnu/packages/mailutils.scm \
  103. gnu/packages/make-bootstrap.scm \
  104. gnu/packages/mit-krb5.scm \
  105. gnu/packages/multiprecision.scm \
  106. gnu/packages/mysql.scm \
  107. gnu/packages/nano.scm \
  108. gnu/packages/ncurses.scm \
  109. gnu/packages/netpbm.scm \
  110. gnu/packages/nettle.scm \
  111. gnu/packages/ocaml.scm \
  112. gnu/packages/openssl.scm \
  113. gnu/packages/oggvorbis.scm \
  114. gnu/packages/pdf.scm \
  115. gnu/packages/perl.scm \
  116. gnu/packages/pkg-config.scm \
  117. gnu/packages/pth.scm \
  118. gnu/packages/python.scm \
  119. gnu/packages/readline.scm \
  120. gnu/packages/recutils.scm \
  121. gnu/packages/rsync.scm \
  122. gnu/packages/scheme.scm \
  123. gnu/packages/screen.scm \
  124. gnu/packages/shishi.scm \
  125. gnu/packages/sqlite.scm \
  126. gnu/packages/subversion.scm \
  127. gnu/packages/system.scm \
  128. gnu/packages/tcl.scm \
  129. gnu/packages/texinfo.scm \
  130. gnu/packages/time.scm \
  131. gnu/packages/tor.scm \
  132. gnu/packages/wget.scm \
  133. gnu/packages/which.scm \
  134. gnu/packages/xml.scm \
  135. gnu/packages/zile.scm \
  136. gnu/packages/zip.scm
  137. GOBJECTS = $(MODULES:%.scm=%.go) guix/config.go
  138. nobase_dist_guilemodule_DATA = $(MODULES)
  139. patchdir = $(guilemoduledir)/gnu/packages/patches
  140. dist_patch_DATA = \
  141. gnu/packages/patches/automake-skip-amhello-tests.patch \
  142. gnu/packages/patches/bigloo-gc-shebangs.patch \
  143. gnu/packages/patches/binutils-ld-new-dtags.patch \
  144. gnu/packages/patches/cpio-gets-undeclared.patch \
  145. gnu/packages/patches/diffutils-gets-undeclared.patch \
  146. gnu/packages/patches/emacs-configure-sh.patch \
  147. gnu/packages/patches/flex-bison-tests.patch \
  148. gnu/packages/patches/gawk-shell.patch \
  149. gnu/packages/patches/gettext-gets-undeclared.patch \
  150. gnu/packages/patches/glib-tests-desktop.patch \
  151. gnu/packages/patches/glib-tests-homedir.patch \
  152. gnu/packages/patches/glib-tests-timezone.patch \
  153. gnu/packages/patches/glibc-bootstrap-system.patch \
  154. gnu/packages/patches/glibc-no-ld-so-cache.patch \
  155. gnu/packages/patches/guile-1.8-cpp-4.5.patch \
  156. gnu/packages/patches/guile-default-utf8.patch \
  157. gnu/packages/patches/guile-relocatable.patch \
  158. gnu/packages/patches/libapr-skip-getservbyname-test.patch \
  159. gnu/packages/patches/libevent-dns-tests.patch \
  160. gnu/packages/patches/libtool-skip-tests.patch \
  161. gnu/packages/patches/lsh-guile-compat.patch \
  162. gnu/packages/patches/lsh-no-root-login.patch \
  163. gnu/packages/patches/lsh-pam-service-name.patch \
  164. gnu/packages/patches/m4-gets-undeclared.patch \
  165. gnu/packages/patches/m4-readlink-EINVAL.patch \
  166. gnu/packages/patches/m4-s_isdir.patch \
  167. gnu/packages/patches/make-impure-dirs.patch \
  168. gnu/packages/patches/findutils-absolute-paths.patch \
  169. gnu/packages/patches/perl-no-sys-dirs.patch \
  170. gnu/packages/patches/procps-make-3.82.patch \
  171. gnu/packages/patches/readline-link-ncurses.patch \
  172. gnu/packages/patches/shishi-gets-undeclared.patch \
  173. gnu/packages/patches/tar-gets-undeclared.patch \
  174. gnu/packages/patches/teckit-cstdio.patch
  175. bootstrapdir = $(guilemoduledir)/gnu/packages/bootstrap
  176. bootstrap_x86_64_linuxdir = $(bootstrapdir)/x86_64-linux
  177. bootstrap_i686_linuxdir = $(bootstrapdir)/i686-linux
  178. dist_bootstrap_x86_64_linux_DATA = \
  179. gnu/packages/bootstrap/x86_64-linux/bash \
  180. gnu/packages/bootstrap/x86_64-linux/mkdir \
  181. gnu/packages/bootstrap/x86_64-linux/tar \
  182. gnu/packages/bootstrap/x86_64-linux/xz
  183. dist_bootstrap_i686_linux_DATA = \
  184. gnu/packages/bootstrap/i686-linux/bash \
  185. gnu/packages/bootstrap/i686-linux/mkdir \
  186. gnu/packages/bootstrap/i686-linux/tar \
  187. gnu/packages/bootstrap/i686-linux/xz
  188. # Big bootstrap binaries are not included in the tarball. Instead, they
  189. # are downloaded.
  190. nodist_bootstrap_x86_64_linux_DATA = \
  191. gnu/packages/bootstrap/x86_64-linux/guile-2.0.7.tar.xz
  192. nodist_bootstrap_i686_linux_DATA = \
  193. gnu/packages/bootstrap/i686-linux/guile-2.0.7.tar.xz
  194. # Those files must remain executable, so they remain executable once
  195. # imported into the store.
  196. install-data-hook:
  197. chmod +x $(DESTDIR)$(bootstrapdir)/*/{bash,mkdir,tar,xz}
  198. DISTCLEANFILES = \
  199. $(nodist_bootstrap_x86_64_linux_DATA) \
  200. $(nodist_bootstrap_i686_linux_DATA)
  201. # Method to download a file from an external source.
  202. DOWNLOAD_FILE = \
  203. GUILE_LOAD_COMPILED_PATH="$(top_builddir):$$GUILE_LOAD_COMPILED_PATH" \
  204. $(GUILE) --no-auto-compile -L "$(top_builddir)" -L "$(top_srcdir)" \
  205. "$(top_srcdir)/build-aux/download.scm"
  206. gnu/packages/bootstrap/x86_64-linux/guile-2.0.7.tar.xz:
  207. $(MKDIR_P) `dirname "$@"`
  208. $(DOWNLOAD_FILE) "$@" "bc43210dcd146d242bef4d354b0aeac12c4ef3118c07502d17ffa8d49e15aa2c"
  209. gnu/packages/bootstrap/i686-linux/guile-2.0.7.tar.xz:
  210. $(MKDIR_P) `dirname "$@"`
  211. $(DOWNLOAD_FILE) "$@" "f9a7c6f4c556eaafa2a69bcf07d4ffbb6682ea831d4c9da9ba095aca3ccd217c"
  212. nobase_nodist_guilemodule_DATA = $(GOBJECTS) guix/config.scm
  213. TESTS = \
  214. tests/base32.scm \
  215. tests/builders.scm \
  216. tests/derivations.scm \
  217. tests/utils.scm \
  218. tests/build-utils.scm \
  219. tests/packages.scm \
  220. tests/snix.scm \
  221. tests/store.scm \
  222. tests/union.scm \
  223. tests/guix-build.sh \
  224. tests/guix-download.sh \
  225. tests/guix-gc.sh \
  226. tests/guix-package.sh
  227. TEST_EXTENSIONS = .scm .sh
  228. AM_TESTS_ENVIRONMENT = abs_top_srcdir="$(abs_top_srcdir)"
  229. SCM_LOG_COMPILER = $(top_builddir)/test-env $(GUILE)
  230. AM_SCM_LOG_FLAGS = --no-auto-compile -L "$(top_srcdir)"
  231. SH_LOG_COMPILER = $(top_builddir)/test-env $(SHELL)
  232. AM_SH_LOG_FLAGS = -x -e
  233. EXTRA_DIST = \
  234. HACKING \
  235. ROADMAP \
  236. TODO \
  237. .dir-locals.el \
  238. hydra.scm \
  239. build-aux/download.scm \
  240. srfi/srfi-64.scm \
  241. srfi/srfi-64.upstream.scm \
  242. tests/test.drv \
  243. build-aux/config.rpath \
  244. bootstrap \
  245. release.nix \
  246. $(TESTS)
  247. CLEANFILES = $(GOBJECTS) *.log
  248. .scm.go:
  249. $(MKDIR_P) `dirname "$@"`
  250. $(top_builddir)/pre-inst-env \
  251. $(GUILD) compile -L "$(top_builddir)" -L "$(top_srcdir)" \
  252. -Wformat -Wunbound-variable -Warity-mismatch \
  253. --target="$(host)" \
  254. -o "$@" "$<"
  255. SUFFIXES = .go
  256. # Make sure source files are installed first, so that the mtime of
  257. # installed compiled files is greater than that of installed source
  258. # files. See
  259. # <http://lists.gnu.org/archive/html/guile-devel/2010-07/msg00125.html>
  260. # for details.
  261. guix_install_go_files = install-nobase_nodist_guilemoduleDATA
  262. $(guix_install_go_files): install-nobase_dist_guilemoduleDATA
  263. SUBDIRS = po
  264. info_TEXINFOS = doc/guix.texi
  265. EXTRA_DIST += doc/fdl-1.3.texi
  266. if BUILD_DAEMON
  267. include daemon.am
  268. endif BUILD_DAEMON
  269. ACLOCAL_AMFLAGS = -I m4
  270. AM_DISTCHECK_CONFIGURE_FLAGS = \
  271. --with-libgcrypt-prefix="$(LIBGCRYPT_PREFIX)" \
  272. --with-nix-prefix="$(NIX_PREFIX)" \
  273. --enable-daemon