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