-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (31 loc) · 1.46 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
.DEFAULT_GOAL := help
################################################################################
# Server and client
all: server client ## Build the server and the client
server: ## Built the server
nix-shell --command "echo Done"
.PHONY: server
client: ## Build the client
nix-shell client.nix -A shells.ghcjs --command \
"cabal --project-file=cabal-ghcjs.project --builddir=dist-ghcjs new-build lineageflow-client"
.PHONY: client
run-server: ## Run the server
nix-shell --command "lf-server $$LINEAGEFLOW_DATABASE"
.PHONY: run-server
run-client: ## Run the client
nix-shell -p chromium --command \
"chromium-browser --disable-web-security --user-data-dir dist-ghcjs/build/x86_64-linux/ghcjs-0.2.1/lineageflow-client-0.1.0/c/lf-client/build/lf-client/lf-client.jsexe/index.html &>/dev/null"
.PHONY: run-client
################################################################################
# Clustering algorithm
clustering-executable: ## Executable for clustering
nix-build release.nix -A bioemergences-clustering
.PHONY: clustering-executable
clustering-docker: ## Build docker image for clustering
nix-build extra/bioemergences-clustering/docker.nix
.PHONY: clustering-docker
################################################################################
# Help
help: ## Print the list of commands.
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: help