-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (30 loc) · 787 Bytes
/
Makefile
File metadata and controls
41 lines (30 loc) · 787 Bytes
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
34
35
36
37
38
39
40
41
directories = \
dist \
dist/login
develop: node_modules
@make -f build/develop.mk
watch: serve node_modules
@make -f build/develop.mk watch
production:
@PATH=$(PATH) npm install --no-optional
./node_modules/.bin/typings install
@make -f build/production.mk
# start a server at localhot:8080
serve: dist/server.mk
@make -C dist -f server.mk $@
# build for electron
electron: dist/electron.mk
@make -C dist -f electron.mk
# drop static build
clean: $(directories)
@rm -rf $<
dist/server.mk: build/server/Makefile dist
@cp $< $@
dist/electron.mk: build/electron/Makefile clean
@make dist
@cp $< $@
node_modules: package.json
@PATH=$(PATH) npm install
$(directories):
@mkdir -p $@
.PHONY: develop watch production serve electron electron-win32 electron-win64 clean