diff options
author | Alberto Ruiz <aruiz@um.es> | 2015-04-15 09:15:54 +0200 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2015-04-15 09:15:54 +0200 |
commit | 12deeb5550d31042816b43e95f7d5678a706c32e (patch) | |
tree | 7c21b8de36095a8e15973e2eff724d4771a06521 /packages/Makefile | |
parent | 3aa140213de434ab6ee6736142fd54c967f34ee9 (diff) |
minor changes
Diffstat (limited to 'packages/Makefile')
-rw-r--r-- | packages/Makefile | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/packages/Makefile b/packages/Makefile index e9d8586..547cf51 100644 --- a/packages/Makefile +++ b/packages/Makefile | |||
@@ -1,22 +1,17 @@ | |||
1 | pkgs=base gsl special glpk tests ../../hTensor ../../easyVision/packages/base | 1 | pkgs=base gsl special glpk tests ../../hTensor ../../easyVision/packages/tools ../../easyVision/packages/base |
2 | |||
3 | cabalcmd = \ | ||
4 | for p in $(1); do \ | ||
5 | if [ -e $$p ]; then \ | ||
6 | cd $$p; cabal $(2) ; cd -; \ | ||
7 | fi; \ | ||
8 | done \ | ||
9 | cd sparse; \ | ||
10 | cabal install --extra-include-dirs=$(MKL) --extra-lib-dirs=$(MKL) $(2); cd -; | ||
2 | 11 | ||
3 | all: | 12 | all: |
4 | for p in $(pkgs); do \ | 13 | $(call cabalcmd, $(pkgs), install --force-reinstall --enable-documentation) |
5 | if [ -e $$p ]; then \ | ||
6 | cd $$p; cabal install --force-reinstall --enable-documentation ; cd -; \ | ||
7 | fi; \ | ||
8 | done | ||
9 | cd sparse; \ | ||
10 | cabal install --extra-include-dirs=$(MKL) --extra-lib-dirs=$(MKL) \ | ||
11 | --force-reinstall --enable-documentation ; cd -; | ||
12 | 14 | ||
13 | fast: | 15 | fast: |
14 | for p in $(pkgs); do \ | 16 | $(call cabalcmd, $(pkgs), install --force-reinstall) |
15 | if [ -e $$p ]; then \ | ||
16 | cd $$p; cabal install --force-reinstall ; cd -; \ | ||
17 | fi; \ | ||
18 | done | ||
19 | cd sparse; \ | ||
20 | cabal install --extra-include-dirs=$(MKL) --extra-lib-dirs=$(MKL) \ | ||
21 | --force-reinstall; cd -; | ||
22 | 17 | ||