aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 825ce235572b45b8c8866f945642fe717c553c12 (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
SHELL=/bin/bash

all: test configure
	cabal build
	cp dist/build/jora2470_hw8/jora2470_hw8 .

test:
	if [[ "$$(which cabal)" == "" ]]; \
	then \
		echo cabal does not exist. Install it with \'sudo apt-get install cabal-install\'; \
		exit 1;\
	fi

configure:
#	cabal update
	cabal install cabal
	cabal install --only-dependencies
	cabal configure

clean:
	cabal clean
	- rm -f jora2470_hw8 *.hi *.o

superclean: clean
	- rm -f jora2470 $$(find . -name '.*sw*')