gnu: Really add lesstif.
[jackhill/guix/guix.git] / Makefile.am
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
20 bin_SCRIPTS = \
21 scripts/guix
22
23 nodist_noinst_SCRIPTS = \
24 pre-inst-env \
25 test-env
26
27 MODULES = \
28 guix/scripts/build.scm \
29 guix/scripts/download.scm \
30 guix/scripts/import.scm \
31 guix/scripts/package.scm \
32 guix/scripts/gc.scm \
33 guix/scripts/pull.scm \
34 guix/base32.scm \
35 guix/utils.scm \
36 guix/derivations.scm \
37 guix/download.scm \
38 guix/gnu-maintenance.scm \
39 guix/licenses.scm \
40 guix/build-system.scm \
41 guix/build-system/gnu.scm \
42 guix/build-system/perl.scm \
43 guix/build-system/trivial.scm \
44 guix/ftp-client.scm \
45 guix/store.scm \
46 guix/ui.scm \
47 guix/build/download.scm \
48 guix/build/gnu-build-system.scm \
49 guix/build/perl-build-system.scm \
50 guix/build/utils.scm \
51 guix/build/union.scm \
52 guix/packages.scm \
53 guix/snix.scm \
54 guix.scm \
55 gnu/packages.scm \
56 gnu/packages/acl.scm \
57 gnu/packages/algebra.scm \
58 gnu/packages/aspell.scm \
59 gnu/packages/attr.scm \
60 gnu/packages/autotools.scm \
61 gnu/packages/base.scm \
62 gnu/packages/bash.scm \
63 gnu/packages/bdb.scm \
64 gnu/packages/bdw-gc.scm \
65 gnu/packages/bison.scm \
66 gnu/packages/bootstrap.scm \
67 gnu/packages/cdrom.scm \
68 gnu/packages/check.scm \
69 gnu/packages/compression.scm \
70 gnu/packages/cpio.scm \
71 gnu/packages/cross-base.scm \
72 gnu/packages/curl.scm \
73 gnu/packages/cyrus-sasl.scm \
74 gnu/packages/dejagnu.scm \
75 gnu/packages/ddrescue.scm \
76 gnu/packages/ed.scm \
77 gnu/packages/emacs.scm \
78 gnu/packages/file.scm \
79 gnu/packages/flex.scm \
80 gnu/packages/fontutils.scm \
81 gnu/packages/gawk.scm \
82 gnu/packages/gdb.scm \
83 gnu/packages/gdbm.scm \
84 gnu/packages/gettext.scm \
85 gnu/packages/ghostscript.scm \
86 gnu/packages/glib.scm \
87 gnu/packages/global.scm \
88 gnu/packages/gnupg.scm \
89 gnu/packages/gnutls.scm \
90 gnu/packages/gperf.scm \
91 gnu/packages/gprolog.scm \
92 gnu/packages/groff.scm \
93 gnu/packages/grub.scm \
94 gnu/packages/gsasl.scm \
95 gnu/packages/guile.scm \
96 gnu/packages/help2man.scm \
97 gnu/packages/icu4c.scm \
98 gnu/packages/idutils.scm \
99 gnu/packages/indent.scm \
100 gnu/packages/irssi.scm \
101 gnu/packages/ld-wrapper.scm \
102 gnu/packages/less.scm \
103 gnu/packages/lesstif.scm \
104 gnu/packages/libapr.scm \
105 gnu/packages/libdaemon.scm \
106 gnu/packages/libevent.scm \
107 gnu/packages/libffi.scm \
108 gnu/packages/libidn.scm \
109 gnu/packages/libjpeg.scm \
110 gnu/packages/libpng.scm \
111 gnu/packages/libsigsegv.scm \
112 gnu/packages/libtiff.scm \
113 gnu/packages/libunistring.scm \
114 gnu/packages/libusb.scm \
115 gnu/packages/libunwind.scm \
116 gnu/packages/linux.scm \
117 gnu/packages/linux-initrd.scm \
118 gnu/packages/lout.scm \
119 gnu/packages/lsh.scm \
120 gnu/packages/m4.scm \
121 gnu/packages/mailutils.scm \
122 gnu/packages/make-bootstrap.scm \
123 gnu/packages/mit-krb5.scm \
124 gnu/packages/mp3.scm \
125 gnu/packages/multiprecision.scm \
126 gnu/packages/mysql.scm \
127 gnu/packages/nano.scm \
128 gnu/packages/ncurses.scm \
129 gnu/packages/netpbm.scm \
130 gnu/packages/nettle.scm \
131 gnu/packages/ocaml.scm \
132 gnu/packages/oggvorbis.scm \
133 gnu/packages/openldap.scm \
134 gnu/packages/openssl.scm \
135 gnu/packages/parted.scm \
136 gnu/packages/patchelf.scm \
137 gnu/packages/pcre.scm \
138 gnu/packages/pdf.scm \
139 gnu/packages/perl.scm \
140 gnu/packages/pkg-config.scm \
141 gnu/packages/popt.scm \
142 gnu/packages/pth.scm \
143 gnu/packages/python.scm \
144 gnu/packages/qemu.scm \
145 gnu/packages/readline.scm \
146 gnu/packages/recutils.scm \
147 gnu/packages/rsync.scm \
148 gnu/packages/samba.scm \
149 gnu/packages/scheme.scm \
150 gnu/packages/screen.scm \
151 gnu/packages/shishi.scm \
152 gnu/packages/smalltalk.scm \
153 gnu/packages/sqlite.scm \
154 gnu/packages/ssh.scm \
155 gnu/packages/subversion.scm \
156 gnu/packages/system.scm \
157 gnu/packages/tcl.scm \
158 gnu/packages/tcsh.scm \
159 gnu/packages/texinfo.scm \
160 gnu/packages/texlive.scm \
161 gnu/packages/time.scm \
162 gnu/packages/tmux.scm \
163 gnu/packages/tor.scm \
164 gnu/packages/vim.scm \
165 gnu/packages/vpn.scm \
166 gnu/packages/wdiff.scm \
167 gnu/packages/wget.scm \
168 gnu/packages/which.scm \
169 gnu/packages/xml.scm \
170 gnu/packages/xorg.scm \
171 gnu/packages/zile.scm \
172 gnu/packages/zip.scm \
173 gnu/system/vm.scm
174
175 # Because of the autoload hack in (guix build download), we must build it
176 # first to avoid errors on systems where (gnutls) is unavailable.
177 guix/scripts/download.go: guix/build/download.go
178
179 GOBJECTS = $(MODULES:%.scm=%.go) guix/config.go
180
181 nobase_dist_guilemodule_DATA = $(MODULES)
182
183 patchdir = $(guilemoduledir)/gnu/packages/patches
184 dist_patch_DATA = \
185 gnu/packages/patches/automake-skip-amhello-tests.patch \
186 gnu/packages/patches/bigloo-gc-shebangs.patch \
187 gnu/packages/patches/binutils-ld-new-dtags.patch \
188 gnu/packages/patches/cpio-gets-undeclared.patch \
189 gnu/packages/patches/diffutils-gets-undeclared.patch \
190 gnu/packages/patches/emacs-configure-sh.patch \
191 gnu/packages/patches/findutils-absolute-paths.patch \
192 gnu/packages/patches/flac-fix-memcmp-not-declared.patch \
193 gnu/packages/patches/flex-bison-tests.patch \
194 gnu/packages/patches/gawk-shell.patch \
195 gnu/packages/patches/gcc-cross-environment-variables.patch \
196 gnu/packages/patches/gettext-gets-undeclared.patch \
197 gnu/packages/patches/glib-tests-desktop.patch \
198 gnu/packages/patches/glib-tests-homedir.patch \
199 gnu/packages/patches/glib-tests-timezone.patch \
200 gnu/packages/patches/glibc-bootstrap-system.patch \
201 gnu/packages/patches/glibc-no-ld-so-cache.patch \
202 gnu/packages/patches/grub-gets-undeclared.patch \
203 gnu/packages/patches/guile-1.8-cpp-4.5.patch \
204 gnu/packages/patches/guile-default-utf8.patch \
205 gnu/packages/patches/guile-linux-syscalls.patch \
206 gnu/packages/patches/guile-relocatable.patch \
207 gnu/packages/patches/libapr-skip-getservbyname-test.patch \
208 gnu/packages/patches/libevent-dns-tests.patch \
209 gnu/packages/patches/libtool-skip-tests.patch \
210 gnu/packages/patches/lsh-guile-compat.patch \
211 gnu/packages/patches/lsh-no-root-login.patch \
212 gnu/packages/patches/lsh-pam-service-name.patch \
213 gnu/packages/patches/m4-gets-undeclared.patch \
214 gnu/packages/patches/m4-readlink-EINVAL.patch \
215 gnu/packages/patches/m4-s_isdir.patch \
216 gnu/packages/patches/make-impure-dirs.patch \
217 gnu/packages/patches/mcron-install.patch \
218 gnu/packages/patches/perl-no-sys-dirs.patch \
219 gnu/packages/patches/procps-make-3.82.patch \
220 gnu/packages/patches/qemu-multiple-smb-shares.patch \
221 gnu/packages/patches/readline-link-ncurses.patch \
222 gnu/packages/patches/shishi-gets-undeclared.patch \
223 gnu/packages/patches/tar-gets-undeclared.patch \
224 gnu/packages/patches/tcsh-fix-autotest.patch \
225 gnu/packages/patches/teckit-cstdio.patch \
226 gnu/packages/patches/vpnc-script.patch
227
228 bootstrapdir = $(guilemoduledir)/gnu/packages/bootstrap
229 bootstrap_x86_64_linuxdir = $(bootstrapdir)/x86_64-linux
230 bootstrap_i686_linuxdir = $(bootstrapdir)/i686-linux
231
232 dist_bootstrap_x86_64_linux_DATA = \
233 gnu/packages/bootstrap/x86_64-linux/bash \
234 gnu/packages/bootstrap/x86_64-linux/mkdir \
235 gnu/packages/bootstrap/x86_64-linux/tar \
236 gnu/packages/bootstrap/x86_64-linux/xz
237
238 dist_bootstrap_i686_linux_DATA = \
239 gnu/packages/bootstrap/i686-linux/bash \
240 gnu/packages/bootstrap/i686-linux/mkdir \
241 gnu/packages/bootstrap/i686-linux/tar \
242 gnu/packages/bootstrap/i686-linux/xz
243
244 # Big bootstrap binaries are not included in the tarball. Instead, they
245 # are downloaded.
246 nodist_bootstrap_x86_64_linux_DATA = \
247 gnu/packages/bootstrap/x86_64-linux/guile-2.0.7.tar.xz
248 nodist_bootstrap_i686_linux_DATA = \
249 gnu/packages/bootstrap/i686-linux/guile-2.0.7.tar.xz
250
251 # Those files must remain executable, so they remain executable once
252 # imported into the store.
253 install-data-hook:
254 chmod +x $(DESTDIR)$(bootstrapdir)/*/{bash,mkdir,tar,xz}
255
256 DISTCLEANFILES = \
257 $(nodist_bootstrap_x86_64_linux_DATA) \
258 $(nodist_bootstrap_i686_linux_DATA)
259
260 # Method to download a file from an external source.
261 DOWNLOAD_FILE = \
262 GUILE_LOAD_COMPILED_PATH="$(top_builddir):$$GUILE_LOAD_COMPILED_PATH" \
263 $(GUILE) --no-auto-compile -L "$(top_builddir)" -L "$(top_srcdir)" \
264 "$(top_srcdir)/build-aux/download.scm"
265
266 gnu/packages/bootstrap/x86_64-linux/guile-2.0.7.tar.xz:
267 $(MKDIR_P) `dirname "$@"`
268 $(DOWNLOAD_FILE) "$@" "bc43210dcd146d242bef4d354b0aeac12c4ef3118c07502d17ffa8d49e15aa2c"
269 gnu/packages/bootstrap/i686-linux/guile-2.0.7.tar.xz:
270 $(MKDIR_P) `dirname "$@"`
271 $(DOWNLOAD_FILE) "$@" "f9a7c6f4c556eaafa2a69bcf07d4ffbb6682ea831d4c9da9ba095aca3ccd217c"
272
273 nobase_nodist_guilemodule_DATA = $(GOBJECTS) guix/config.scm
274
275 TESTS = \
276 tests/base32.scm \
277 tests/builders.scm \
278 tests/derivations.scm \
279 tests/ui.scm \
280 tests/utils.scm \
281 tests/build-utils.scm \
282 tests/packages.scm \
283 tests/snix.scm \
284 tests/store.scm \
285 tests/union.scm \
286 tests/guix-build.sh \
287 tests/guix-download.sh \
288 tests/guix-gc.sh \
289 tests/guix-package.sh
290
291 TEST_EXTENSIONS = .scm .sh
292
293 AM_TESTS_ENVIRONMENT = abs_top_srcdir="$(abs_top_srcdir)"
294
295 SCM_LOG_COMPILER = $(top_builddir)/test-env $(GUILE)
296 AM_SCM_LOG_FLAGS = --no-auto-compile -L "$(top_srcdir)"
297
298 SH_LOG_COMPILER = $(top_builddir)/test-env $(SHELL)
299 AM_SH_LOG_FLAGS = -x -e
300
301 EXTRA_DIST = \
302 HACKING \
303 ROADMAP \
304 TODO \
305 .dir-locals.el \
306 hydra.scm \
307 build-aux/download.scm \
308 srfi/srfi-64.scm \
309 srfi/srfi-64.upstream.scm \
310 tests/test.drv \
311 build-aux/config.rpath \
312 bootstrap \
313 release.nix \
314 $(TESTS)
315
316 CLEANFILES = $(GOBJECTS) *.log
317
318 # XXX: Use the C locale for when Guile lacks
319 # <http://git.sv.gnu.org/cgit/guile.git/commit/?h=stable-2.0&id=e2c6bf3866d1186c60bacfbd4fe5037087ee5e3f>.
320 .scm.go:
321 $(MKDIR_P) `dirname "$@"`
322 LC_ALL=C \
323 $(top_builddir)/pre-inst-env \
324 $(GUILD) compile -L "$(top_builddir)" -L "$(top_srcdir)" \
325 -Wformat -Wunbound-variable -Warity-mismatch \
326 --target="$(host)" \
327 -o "$@" "$<"
328
329 SUFFIXES = .go
330
331 # Make sure source files are installed first, so that the mtime of
332 # installed compiled files is greater than that of installed source
333 # files. See
334 # <http://lists.gnu.org/archive/html/guile-devel/2010-07/msg00125.html>
335 # for details.
336 guix_install_go_files = install-nobase_nodist_guilemoduleDATA
337 $(guix_install_go_files): install-nobase_dist_guilemoduleDATA
338
339 SUBDIRS = po
340
341 info_TEXINFOS = doc/guix.texi
342 EXTRA_DIST += doc/fdl-1.3.texi
343
344 if BUILD_DAEMON
345
346 include daemon.am
347
348 endif BUILD_DAEMON
349
350 ACLOCAL_AMFLAGS = -I m4
351 AM_DISTCHECK_CONFIGURE_FLAGS = \
352 --with-libgcrypt-prefix="$(LIBGCRYPT_PREFIX)" \
353 --with-nix-prefix="$(NIX_PREFIX)" \
354 --enable-daemon