about summary refs log tree commit diff
path: root/users/Profpatsch/whatcd-resolver/build.ninja
blob: 026f100a2e826e1a0a59bd9bb7db57b03904eb36 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
builddir = .ninja

rule cabal-run
  command = cabal run $target

rule cabal-repl
  command = cabal repl $target

rule cabal-test
  command = cabal test $target

rule hpack-file
  description = hpack $in
  command = $
    hpack --force $in $
    && touch $out

build repl : cabal-repl | cabal-preconditions
  target = whatcd-resolver-server
  pool = console

build run : cabal-run | cabal-preconditions
  target = whatcd-resolver-server
  pool = console


build cabal-preconditions : phony whatcd-resolver-server.cabal

build whatcd-resolver-server.cabal : hpack-file package.yaml