forked from jessevdk/cldoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (32 loc) · 951 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
PYTHON = python
SETUP = $(PYTHON) setup.py
COFFEE = node_modules/.bin/coffee
INLINE_SOURCE = node_modules/inline-source
SASS = gems/.bin/sass
UNAME = $(shell uname)
ifeq ($(UNAME),Darwin)
OPEN = open
else
OPEN = xdg-open
endif
all:
$(INLINE_SOURCE):
npm install
# Fake chain to inline-source since they both install using a single npm install
$(COFFEE): $(INLINE_SOURCE)
deps: $(COFFEE) $(INLINE_SOURCE) $(SASS)
$(SASS):
@echo "Installing sass"; \
mkdir -p gems/.bin; \
gem install --user-install -b gems -n gems/.bin --no-ri --no-rdoc sass
generate: deps
$(SETUP) generate --coffee=$(COFFEE) --inline=scripts/inline --sass=$(SASS)
install:
$(SETUP) install --user
tests:
$(PYTHON) tests/regression.py
test-coverage:
(cd tests && coverage run regression.py && coverage html) && $(OPEN) tests/htmlcov/index.html
dev:
$(PYTHON) setup.py generate --coffee=$(COFFEE) --sass=$(SASS) --inline=""
.PHONY: all deps generate install tests