forked from HospitalRun/hospitalrun-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (37 loc) · 957 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
48
49
PATH := node_modules/.bin:$(PATH)
SHELL := /usr/bin/env bash
# ------------------------------------------------------------------------------
bower := $(shell cat .bowerrc | python -c 'import json,sys;print json.load(sys.stdin)["directory"];')
.PHONY: all
all: test build
.PHONY: clean
clean:
@echo 'Nothing to do yet!'
.PHONY: test
test:
@./script/test
.PHONY: build
build: install
@./script/build
.PHONY: server
server: install node_modules/bower node_modules/ember-cli server/config.js
@./script/server
server/config.js:
@cp server/config-example.js $@
.PHONY: couchdb
couchdb:
@./script/couchdb
# Starts couchdb and server in the same terminal in parallel
.PHONY: serve
serve:
@$(MAKE) -j2 couchdb server
.PHONY: install
install: node_modules $(bower)
node_modules: package.json
@npm install
@touch $@
node_modules/%:
@npm install $*
$(bower): node_modules/bower bower.json
@bower install --allow-root
@touch $@