2016-09-27 11:30:39 -04:00
|
|
|
JS_SOURCES = $(wildcard js/*.js) $(wildcard js/*/*.js)
|
2016-02-13 17:02:22 -05:00
|
|
|
|
2017-06-17 10:28:50 -04:00
|
|
|
all: static/bundle.js static/react-widgets static/codemirror/codemirror.css security_templates.go
|
2016-02-13 17:02:22 -05:00
|
|
|
|
2016-10-05 14:17:17 -04:00
|
|
|
node_modules:
|
|
|
|
npm install
|
|
|
|
|
|
|
|
static/bundle.js: $(JS_SOURCES) node_modules
|
2017-06-07 21:08:39 -04:00
|
|
|
browserify -t [ babelify --presets [ react es2015 ] ] js/main.js -o static/bundle.js
|
2016-02-13 17:02:22 -05:00
|
|
|
|
2016-10-05 14:17:17 -04:00
|
|
|
static/react-widgets: node_modules/react-widgets/dist node_modules
|
2016-02-13 17:02:22 -05:00
|
|
|
rsync -a node_modules/react-widgets/dist/ static/react-widgets/
|
|
|
|
|
2017-06-17 10:28:50 -04:00
|
|
|
static/codemirror/codemirror.css: node_modules/codemirror/lib/codemirror.js node_modules
|
|
|
|
mkdir -p static/codemirror
|
|
|
|
cp node_modules/codemirror/lib/codemirror.css static/codemirror/codemirror.css
|
|
|
|
|
2016-10-14 20:50:50 -04:00
|
|
|
security_templates.go: cusip_list.csv
|
|
|
|
./scripts/gen_security_list.py > security_templates.go
|
|
|
|
|
|
|
|
cusip_list.csv:
|
|
|
|
./scripts/gen_cusip_csv.sh > cusip_list.csv
|
|
|
|
|
2016-02-13 17:02:22 -05:00
|
|
|
.PHONY = all
|