1 ----------------------------------------------------------------------
2 -- Copyright (c) 2009, 2011, 2012, ETH Zurich.
3 -- All rights reserved.
5 -- This file is distributed under the terms in the attached LICENSE file.
6 -- If you do not find this file, copies can be found by writing to:
7 -- ETH Zurich D-INFK CAB F.78, Universitaetstr 6, CH-8092 Zurich.
8 -- Attn: Systems Group.
12 ----------------------------------------------------------------------
15 hsInDir af tf dir = inDir af tf dir ".hs"
16 hakesrc = find hsInDir "."
18 [ Rule ([ Str "ghc -O --make -XDeriveDataTypeable",
20 Str "-package ghc-paths",
22 Str "-with-rtsopts=\"-K32m\"",
23 Str "-o", Out "hake" "/hake",
24 Str "-outputdir", NoDep BuildTree "hake" "/",
25 NStr "-i", NoDep SrcTree "src" "",
26 NStr "-i", NoDep BuildTree "hake" "/",
27 In SrcTree "src" "Main.hs",
28 Dep InstallTree "" "Config.hs",
31 ++ [Dep SrcTree "src" f | f <- hakesrc]
32 ++ [NL, Str "rm", NoDep BuildTree "hake" "/ARMv5.o" ]),
34 In SrcTree "src" "symbolic_targets.mk",
35 Out "root" "symbolic_targets.mk"
38 -- copy default menu.lst file for the first architecture
39 -- XXX: this should be per-platform, if hake knew about them
40 Rule [ Str "cp -p -b ", In SrcTree "src" "menu.lst.$(word 1, $(HAKE_ARCHS))", Out "root" "menu.lst" ]