From 62fa8f93990f6aedaae8242fdde6bba44e434f5f Mon Sep 17 00:00:00 2001 From: Joshua Rahm Date: Tue, 18 Mar 2014 23:52:40 -0600 Subject: initial commit --- Makefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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*') -- cgit