forked from DemocracyOS/democracyos
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (29 loc) · 659 Bytes
/
Makefile
File metadata and controls
36 lines (29 loc) · 659 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
#
# DemocracyOS Makefile
#
ifndef DEBUG
DEBUG="democracyos*"
endif
ifndef NODE_ENV
NODE_ENV="development"
endif
run: packages
@echo "Starting application..."
@NODE_PATH=. DEBUG=$(DEBUG) node index.js
packages:
@echo "Installing dependencies..."
@npm install
@echo "Done.\n"
@echo "Installing components..."
@node ./bin/dos-install --config
@echo "Updating config settings..."
@node ./bin/dos-config
@echo "Done.\n"
@echo "Compiling components to ./public..."
@node ./bin/dos-build
@echo "Done.\n"
clean:
@echo "Removing dependencies, components and built assets."
@rm -rf node_modules components public
@echo "Done.\n"
.PHONY: clean