forked from fortytools/holumbus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (41 loc) · 1.78 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# build Holumbus-Searchengine, Hayoo and W3W
action = install
hayooFlags = --flags="hashedIndex hayooSnap4"
all : install
clean : ; $(MAKE) target action=clean
configure : ; $(MAKE) target action=configure
build : ; $(MAKE) target action=build
install : ; $(MAKE) target action=install
target :
( cd Holumbus-Searchengine && cabal $(action) )
( cd Hayoo && cabal $(action) $(hayooFlags) )
( cd W3W && cabal $(action) )
init :
cabal sandbox init --sandbox .cabal-sandbox
cabal sandbox add-source Holumbus-Searchengine
cabal sandbox add-source Hayoo/HayooIndexerLib
cabal sandbox add-source ../hunt-framework/hunt/hunt-searchengine
cabal sandbox add-source ../hunt-framework/hayoo/hayooLib
cd Holumbus-Searchengine \
&& cabal sandbox init --sandbox ../.cabal-sandbox
cd Hayoo/HayooIndexerLib \
&& cabal sandbox init --sandbox ../../.cabal-sandbox \
&& cabal sandbox add-source ../../Holumbus-Searchengine
cd Hayoo/HayooIndexer \
&& cabal sandbox init --sandbox ../../.cabal-sandbox \
&& cabal sandbox add-source ../../Holumbus-Searchengine \
&& cabal sandbox add-source ../../../hunt-framework/hunt/hunt-searchengine \
&& cabal sandbox add-source ../../../hunt-framework/hayoo/hayooLib
# cabal sandbox add-source ../bytestring
# cabal sandbox add-source ../text
# cabal sandbox add-source ../data-size
# cabal sandbox add-source ../data-stringmap
# cabal sandbox add-source Holumbus-Searchengine
# cabal sandbox add-source Hayoo/HayooIndexerLib
# cabal sandbox add-source ../hunt-framework/hunt/hunt-searchengine
# cabal sandbox add-source ../hunt-framework/hayoo/hayooLib
depends :
cabal install --only-dependencies --force-reinstall
delete :
cabal sandbox delete
.PHONY : target clean configure build install all init