2017-03-05 00:56:31 +00:00
|
|
|
TOOL=webpack
|
2017-08-05 06:32:57 +00:00
|
|
|
WPOPTS=--display-modules --display-reasons --profile
|
2017-03-05 00:56:31 +00:00
|
|
|
.PHONY: all
|
2017-08-05 06:32:57 +00:00
|
|
|
all: $(TOOL).min.js core.out.js full.out.js
|
2017-03-05 00:56:31 +00:00
|
|
|
|
|
|
|
$(TOOL).min.js: $(TOOL).js
|
|
|
|
uglifyjs $< > $@
|
|
|
|
|
|
|
|
.PHONY: $(TOOL).js
|
|
|
|
$(TOOL).js:
|
2017-08-05 06:32:57 +00:00
|
|
|
webpack main.js --output-filename $@ $(WPOPTS)
|
|
|
|
|
|
|
|
.PHONY: core.out.js full.out.js
|
|
|
|
core.out.js full.out.js: %.out.js: %.js
|
|
|
|
webpack $< --output-filename $@ $(WPOPTS)
|