-
Notifications
You must be signed in to change notification settings - Fork 178
/
Makefile
33 lines (24 loc) · 750 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
# opentrons discovery-client makefile
# using bash instead of /bin/bash in SHELL prevents macOS optimizing away our PATH update
# TODO(mc, 2021-02-12): this may be unnecessary by using `yarn run` instead
SHELL := bash
# outputs
main_out := lib/index.js lib/index.js.map
cli_out := lib/cli.js lib/cli.js.map
# standard targets
#####################################################################
.PHONY: all
all: clean lib
.PHONY: clean
clean:
yarn shx rm -rf $(main_out) $(cli_out)
# artifacts
#####################################################################
.PHONY: lib
lib: export NODE_ENV := production
lib: $(main_out) $(cli_out)
$(main_out) $(cli_out):
yarn vite build
.PHONY: test
test:
$(MAKE) -C .. test-js-discovery-client