Implement 'make clean' rule.
[goaljobs-goals.git] / config.ml
1 (* This contains lots of configuration specifics which are
2  * unlikely to be useful unless you are me ...
3  *)
4
5 open Goaljobs
6 open Printf
7
8 (* General. *)
9 let buildtmp = sprintf "%s/tmp/builds" (Sys.getenv "HOME")
10
11 (* libguestfs *)
12 let libguestfs_query_mins = 60
13
14 let libguestfs_website_cvs =
15   sprintf "%s/d/redhat/websites/libguestfs" (Sys.getenv "HOME")
16
17 let libguestfs_localconfigure source =
18   let configure =
19     match source with
20       `Git -> "./autogen.sh"
21     | `Tarball -> "./configure" in
22   sprintf "\
23 #!/bin/bash -
24 . localenv
25
26 %s \\
27   --prefix /usr \\
28   --disable-static \\
29   --with-default-backend=libvirt \\
30   --enable-gcc-warnings \\
31   --enable-gtk-doc \\
32   --enable-valgrind-daemon \\
33   -C \\
34   \"$@\"
35 " configure
36
37 let libguestfs_localenv = "\
38 # Parallel test runs out of resources starting qemu, unclear why.
39 export SKIP_TEST_PARALLEL_MOUNT_LOCAL=1
40
41 # Fails under valgrind because cpio subprocess has a memory leak.
42 export SKIP_TEST_FILE_ARCHITECTURE_11=1
43 "