summaryrefslogtreecommitdiff
path: root/packages/Makefile
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2015-04-15 09:53:26 +0200
committerAlberto Ruiz <aruiz@um.es>2015-04-15 09:53:26 +0200
commit6ecaa30249548c44199ddbc3cce6f8228b17be5b (patch)
tree9dfc39f50c2f2c8c6f08569a933d3198813cb8b8 /packages/Makefile
parent27dceac51cbd904e06891e583d4b445e691efc8c (diff)
simplify tests
Diffstat (limited to 'packages/Makefile')
-rw-r--r--packages/Makefile19
1 files changed, 14 insertions, 5 deletions
diff --git a/packages/Makefile b/packages/Makefile
index 547cf51..b00d71f 100644
--- a/packages/Makefile
+++ b/packages/Makefile
@@ -1,17 +1,26 @@
1pkgs=base gsl special glpk tests ../../hTensor ../../easyVision/packages/tools ../../easyVision/packages/base 1pkgs=base gsl special glpk tests ../../hTensor ../../easyVision/packages/tools ../../easyVision/packages/base
2 2
3mkl=--extra-include-dirs=$(MKL) --extra-lib-dirs=$(MKL)
4
3cabalcmd = \ 5cabalcmd = \
4 for p in $(1); do \ 6 for p in $(1); do \
5 if [ -e $$p ]; then \ 7 if [ -e $$p ]; then \
6 cd $$p; cabal $(2) ; cd -; \ 8 cd $$p; cabal $(2) ; cd -; \
7 fi; \ 9 fi; \
8 done \ 10 done; \
9 cd sparse; \ 11 cd sparse; \
10 cabal install --extra-include-dirs=$(MKL) --extra-lib-dirs=$(MKL) $(2); cd -; 12 cabal $(3) $(2); cd -;
13
11 14
12all: 15all:
13 $(call cabalcmd, $(pkgs), install --force-reinstall --enable-documentation) 16 $(call cabalcmd, $(pkgs), install --force-reinstall --enable-documentation, $(mkl))
14 17
15fast: 18fast:
16 $(call cabalcmd, $(pkgs), install --force-reinstall) 19 $(call cabalcmd, $(pkgs), install --force-reinstall, $(mkl))
20
21clean:
22 $(call cabalcmd, $(pkgs), clean)
23
24prof:
25 $(call cabalcmd, $(pkgs), install --force-reinstall --enable-library-profiling, $(mkl))
17 26