-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
33 lines (22 loc) · 1012 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
NPM:=$(shell which npm)
YARN:=$(shell which yarn)
installer = $(NPM)
ifdef YARN
installer = $(YARN)
endif
all: run
examples: example/nucl.json example/prot.json
example/%.json: example/%.xmfa
python xmfa_process.py example/data.gff example/data.fa $< data/$(notdir $(basename $<))/ > $@
run: node_modules examples ## Run the server
@echo "********************************"
@echo "* open http://localhost:8000/ *"
@echo "********************************"
./node_modules/.bin/webpack-dev-server --progress --colors --devtool cheap-module-inline-source-map --hot --debug --inline --host 127.0.0.1 --port 8000
build: node_modules ## Compile a project for deployment
./node_modules/.bin/webpack --progress --colors --devtool source-map --optimize-minimize --optimize-dedupe
node_modules: package.json
$(installer) install
.PHONY: all examples run build
help:
@egrep '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'