forked from sulake/graphite-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (31 loc) · 714 Bytes
/
Makefile
File metadata and controls
44 lines (31 loc) · 714 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
42
43
44
.PHONY: test
SRC = $(shell find src -name "*.ls" -type f | sort)
LIB = $(SRC:src/%.ls=lib/%.js)
MOCHA = ./node_modules/.bin/mocha
LSC = node_modules/.bin/lsc
NAME = $(shell node -e "console.log(require('./package.json').name)")
default: all
lib:
mkdir -p lib/
lib/%.js: src/%.ls lib
$(LSC) --compile --output lib "$<"
all: compile
compile: $(LIB) package.json
install: clean all
npm install -g .
reinstall:
npm uninstall -g ${NAME}
make install
dev-install: package.json
npm install .
clean:
rm -rf lib
publish: all test
git push --tags origin HEAD:master
npm publish
test: compile
@$(MOCHA) \
--timeout 20000 \
--compilers ls:LiveScript \
--require ./test/_globals.ls \
--recursive