-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (42 loc) · 1.18 KB
/
Makefile
File metadata and controls
56 lines (42 loc) · 1.18 KB
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
52
53
54
55
56
##
#
# @file
# @version 0.1
# end
.DEFAULT_GOAL := help
.PHONY: build help workflow
OS=$(shell uname -s)
# OPEN launches the system command adapted to its parameter
ifeq ($(OS),Linux)
INTERACTIVE=
OPEN=xdg-open
ifndef DOCKER_COMPOSE_UID
export DOCKER_COMPOSE_UID=$(shell id -u)
export DOCKER_COMPOSE_GID=$(shell id -g)
endif
else ifeq ($(OS),Darwin)
INTERACTIVE=
OPEN=open
else ifeq ($(OS),CYGWIN_NT-10.0)
INTERACTIVE=winpty
OPEN=cmd /c start
else
INTERACTIVE=
OPEN=echo
endif
help: ## Display available commands in Makefile
@grep -hE '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
build: ## Build dinstance
@bash bin/build.sh
demo: ## start a demo pymdext container to run it
@bash bin/runInteractive.sh
install: ## local install of pymedext packages
@bash bin/install.sh
uninstall: ## uninstall local pymedext packages
@bash bin/uninstall.sh
# annote: ## run annotation with main_regex
# @bash bin/annoteText.sh
# omop: ## transform annotation to omop data
# @bash bin/annoteToOmop.sh
# omopdb: ## WARNING load data to omopdb. Need to be in the docker ( make demo)
# @bash bin/annoteToOmopDB.sh