Makefile 1.29 KB
Newer Older
Carine Rey's avatar
Carine Rey committed
1
.PHONY: build install build_docker push_docker test clean_test
2

Philippe Veber's avatar
Philippe Veber committed
3 4 5 6 7
build:
	jbuilder build

install:
	jbuilder install
8

Carine Rey's avatar
Carine Rey committed
9
clean:
Carine Rey's avatar
update  
Carine Rey committed
10 11 12
	rm -r _build || exit 0
	rm -r example/_bistro || exit 0
	rm -r example/outdir || exit 0
Carine Rey's avatar
Carine Rey committed
13

14
build_docker:
15
	@for dir in ./etc/docker/*; \
16 17 18
	do\
		cd $${dir}; \
		bash ./build_docker.sh; \
Carine Rey's avatar
Carine Rey committed
19
		cd - ; \
20 21 22
	done

push_docker:
23
	@for dir in ./etc/docker/*; \
24 25 26
	do\
		cd $${dir}; \
		bash ./build_docker.sh push_yes; \
Carine Rey's avatar
Carine Rey committed
27
		cd - ; \
28
	done
Carine Rey's avatar
Carine Rey committed
29 30

test:
Carine Rey's avatar
Carine Rey committed
31
	cd example && \
Carine Rey's avatar
Carine Rey committed
32
	reviewphiltrans pipeline --outdir outdir --tree-dir trees --profile-fn aa_fitness/tiragesBloomK30.tsv --preview --np 4 && \
Carine Rey's avatar
Carine Rey committed
33
	mv dag.dot dagtest.dot && \
Carine Rey's avatar
Carine Rey committed
34
	dot -Tsvg dagtest.dot -o dagtest.svg
Carine Rey's avatar
Carine Rey committed
35 36 37

analyses_test:
	cd example && \
Carine Rey's avatar
Carine Rey committed
38
	reviewphiltrans pipeline --outdir outdir_analyses_test --tree-dir trees4analyses --profile-fn aa_fitness/tiragesBloomK30.tsv --preview  --np 4 && \
Carine Rey's avatar
Carine Rey committed
39 40
	mv dag.dot daganalyses_test.dot && \
	dot -Tpdf  daganalyses_test.dot -o daganalyses_test.pdf
Carine Rey's avatar
Carine Rey committed
41 42 43

analyses:
	cd example && \
Carine Rey's avatar
Carine Rey committed
44
	reviewphiltrans pipeline --outdir outdir_analyses --tree-dir trees4analyses --profile-fn aa_fitness/tiragesBloomK30.tsv --np 4 && \
Carine Rey's avatar
Carine Rey committed
45 46
	mv dag.dot daganalyses.dot && \
	dot -Tpdf  daganalyses.dot -o daganalyses.pdf
Carine Rey's avatar
Carine Rey committed
47 48

clean_test:
Carine Rey's avatar
Carine Rey committed
49 50 51 52
	rm -r example/_bistro || exit 0
	rm -r example/outdir || exit 0
	rm -r example/report.log || exit 0
	rm -r example/dot.dag || exit 0