diff options
author | Alberto Ruiz <aruiz@um.es> | 2015-04-15 09:53:26 +0200 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2015-04-15 09:53:26 +0200 |
commit | 6ecaa30249548c44199ddbc3cce6f8228b17be5b (patch) | |
tree | 9dfc39f50c2f2c8c6f08569a933d3198813cb8b8 /packages/Makefile | |
parent | 27dceac51cbd904e06891e583d4b445e691efc8c (diff) |
simplify tests
Diffstat (limited to 'packages/Makefile')
-rw-r--r-- | packages/Makefile | 19 |
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 @@ | |||
1 | pkgs=base gsl special glpk tests ../../hTensor ../../easyVision/packages/tools ../../easyVision/packages/base | 1 | pkgs=base gsl special glpk tests ../../hTensor ../../easyVision/packages/tools ../../easyVision/packages/base |
2 | 2 | ||
3 | mkl=--extra-include-dirs=$(MKL) --extra-lib-dirs=$(MKL) | ||
4 | |||
3 | cabalcmd = \ | 5 | cabalcmd = \ |
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 | ||
12 | all: | 15 | all: |
13 | $(call cabalcmd, $(pkgs), install --force-reinstall --enable-documentation) | 16 | $(call cabalcmd, $(pkgs), install --force-reinstall --enable-documentation, $(mkl)) |
14 | 17 | ||
15 | fast: | 18 | fast: |
16 | $(call cabalcmd, $(pkgs), install --force-reinstall) | 19 | $(call cabalcmd, $(pkgs), install --force-reinstall, $(mkl)) |
20 | |||
21 | clean: | ||
22 | $(call cabalcmd, $(pkgs), clean) | ||
23 | |||
24 | prof: | ||
25 | $(call cabalcmd, $(pkgs), install --force-reinstall --enable-library-profiling, $(mkl)) | ||
17 | 26 | ||