Functional reactive programming library (fork of ertes's netwire)

root / Makefile

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
.PHONY: all clean

nixsh = nix-shell --pure --command


all: dist/setup-config Setup default.nix shell.nix
	$(nixsh) "./Setup build"

clean:
	rm -rf dist
	rm -f Setup default.nix


Setup: Setup.lhs default.nix shell.nix
	$(nixsh) "ghc -O -o $@ $<"
	rm $@.hi $@.o

default.nix: $(wildcard *.cabal)
	cabal2nix ./. > $@

dist/setup-config: $(wildcard *.cabal) Setup default.nix shell.nix
	$(nixsh) "./Setup configure -ftestprogram"