Convert hard coded values to variables
This commit is contained in:
parent
d964d657ba
commit
5945fb2d37
8
Makefile
8
Makefile
@ -11,6 +11,10 @@ SHELL = /bin/sh
|
|||||||
|
|
||||||
BASE_DIR = .
|
BASE_DIR = .
|
||||||
PYTHON3_BIN = python3
|
PYTHON3_BIN = python3
|
||||||
|
ROLLUP_BIN = rollup
|
||||||
|
ROLLUP_OPTS = --format=umd --name OOMAnalyser --file=OOMAnalyser.js
|
||||||
|
TRANSCRYPT_BIN = transcrypt
|
||||||
|
TRANSCRYPT_OPTS = --build --map --nomin --sform --esv 6
|
||||||
VIRTUAL_ENV_DIR = env
|
VIRTUAL_ENV_DIR = env
|
||||||
|
|
||||||
export VIRTUAL_ENV := $(abspath ${VIRTUAL_ENV_DIR})
|
export VIRTUAL_ENV := $(abspath ${VIRTUAL_ENV_DIR})
|
||||||
@ -62,8 +66,8 @@ venv-clean:
|
|||||||
#+ Compile Python to JavaScript
|
#+ Compile Python to JavaScript
|
||||||
build: venv
|
build: venv
|
||||||
. $(VIRTUAL_ENV_DIR)/bin/activate
|
. $(VIRTUAL_ENV_DIR)/bin/activate
|
||||||
transcrypt --build --map --nomin --sform -e 6 OOMAnalyser.py
|
$(TRANSCRYPT_BIN) $(TRANSCRYPT_OPTS) OOMAnalyser.py
|
||||||
rollup --format=umd --name OOMAnalyser --file=OOMAnalyser.js -- __target__/OOMAnalyser.js
|
$(ROLLUP_BIN) $(ROLLUP_OPTS) -- __target__/OOMAnalyser.js
|
||||||
|
|
||||||
#+ Serve the current directory on http://127.0.0.1:8080
|
#+ Serve the current directory on http://127.0.0.1:8080
|
||||||
websrv:
|
websrv:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user