1----------------------------------------------------------------------
2-- Copyright (c) 2010, ETH Zurich.
3-- All rights reserved.
4--
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, Universitaetstr. 6, CH-8092 Zurich. Attn: Systems Group.
8--
9-- Hakefile for /doc/015-disk-driver-arch
10--
11----------------------------------------------------------------------
12
13let
14  svg_sources = [ "architecture", "blockdevfs_list",
15                  "cache_design", "dma_pool_design", "fat16_layout",
16                  "fat32_layout", "fillbench", "h2d_fis", "mmap",
17                  "pmem_overview", "rfis_area" ]
18
19  figpdf f = "figures/" ++ f
20
21  -- This part is not used anymore, removes build-time dependency on inkscape,
22  -- -SG, 2014-10-14
23  figoutput f = "/tmp/" ++ f ++ ".pdf"
24
25  -- Fix issues with modified LD_LIBRARY_PATH breaking inkscape, -SG, 9/1/13
26  inkscape f = [ Str "LD_LIBRARY_PATH=", Str Config.inkscape, Str "-D", Str "-A",
27                 Out "tools" (figoutput f), In SrcTree "src" ("figures/" ++ f ++ ".svg"), NL ]
28  in
29 [ buildTechNote "disk-driver-report.tex" "TN-015-DiskDriverArchitecture.pdf" True False
30   [ figpdf f | f <- svg_sources ]
31 ]
32
33