diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..825ce23 --- /dev/null +++ b/Makefile @@ -0,0 +1,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*') |