-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (27 loc) · 920 Bytes
/
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
SCRAPEREXEC=start_scraper
ANALYZE=analyze_companies
TESTEXEC=test_analyzer
INCL=-I src/ -thread -linkpkg -package core,async,uri,yojson,cohttp.async,graphics,oUnit
default: build
run-scraper: build
bin/$(SCRAPEREXEC)
hist-scraper: build
bin/hist_scraper ${ARGS}
tests: build
bin/$(TESTEXEC)
analyze-history: build
bin/$(ANALYZE)
build:
cd src && ocamlbuild -use-ocamlfind $(SCRAPEREXEC).native
mv src/$(SCRAPEREXEC).native bin/$(SCRAPEREXEC)
cd src/ && ocamlbuild -use-ocamlfind $(TESTEXEC).native
mv src/$(TESTEXEC).native bin/$(TESTEXEC)
cd src/ && ocamlbuild -use-ocamlfind test_historical_scraper.native
mv src/test_historical_scraper.native bin/hist_scraper
cd src/ && ocamlbuild -use-ocamlfind $(ANALYZE).native
mv src/$(ANALYZE).native bin/$(ANALYZE)
cd src/ && ocamlbuild -use-ocamlfind test_scraper.native
mv src/test_scraper.native bin/test_scraper
clean:
rm -rf src/*~ *~
rm src/*.cm*