forked from druid-io/druid-console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (35 loc) · 975 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
ROOT_DIR := $(shell pwd)
PATH := ${ROOT_DIR}/node/current/bin:${ROOT_DIR}/node_modules/.bin:${PATH}
all: compile
init: install-node-modules install-bower-components copy-bower-css-and-fonts
#
# node
#
install-node-modules:
@npm install
install-bower-components:
@node_modules/.bin/bower install
copy-bower-css-and-fonts:
@mkdir -p static/css
@cp bower_components/bootstrap/dist/css/bootstrap-theme.css bower_components/bootstrap/dist/css/bootstrap.css bower_components/font-awesome/css/font-awesome.css static/css
@mkdir -p static/fonts
@cp bower_components/font-awesome/fonts/* static/fonts
#
# app
#
compile:
@mkdir -p target/src
@cd target && ln -s ../build && ln -s ../static
@cd target/src && ln -s ../../src/server
#
# clean
#
clean-all: clean clean-node-modules clean-bower-components
clean:
@rm -rfv target
clean-node-modules:
@rm -rfv node_modules
clean-bower-components:
@rm -rfv bower_components
@rm -rfv static/css
@rm -rfv static/fonts