-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
40 lines (28 loc) · 938 Bytes
/
Makefile
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
30
31
32
33
34
35
36
37
38
39
40
build: FORCE
git submodule update --init
stack build --install-ghc --allow-different-user
READMEExample: FORCE
stack ghc --package libui ./READMEExample.hs
rm READMEExample.{o,hi}
vagrant-build: FORCE
vagrant up && vagrant provision && vagrant ssh -c 'cd /vagrant && make build'
markd: FORCE
cd ./apps/markd/ && make
gists: FORCE
cd ./apps/gists/ && make
libui: FORCE
cd ./vendor/libui && mkdir -p build && cd build && rm -rf * && cmake .. && make examples
run: FORCE
stack run -i
test: FORCE
stack test
provision-ubuntu: FORCE
bash -e provision.sh
./vendor/libui/build/out/libui.so: FORCE
cd ./vendor/libui && rm -rf build && mkdir build && cd build && cmake .. && make
ghci: FORCE
make ./vendor/libui/build/out/libui.so
stack ghc --verbose -- --interactive -L./vendor/libui/build/out/ -lui -optl-Wl,-rpath,'$ORIGIN'
ghci-linux: FORCE
stack ghc -- --interactive -L./vendor/libui/build/out/ -lcairo -lui
FORCE: