|
|
@@ -1,6 +1,12 @@ |
|
|
.PHONY: all |
|
|
.PHONY: all |
|
|
.SUFFIXES: .jspp .js |
|
|
.SUFFIXES: .jspp .js |
|
|
|
|
|
|
|
|
|
|
|
PROJNAME=solardash |
|
|
|
|
|
VIRTUALENV ?= virtualenv-3.7 |
|
|
|
|
|
VRITUALENVARGS = |
|
|
|
|
|
|
|
|
|
|
|
FILES=$(PROJNAME)/__init__.py |
|
|
|
|
|
|
|
|
JSFILES = root/js/solardash.file.js root/js/solardash.https.js |
|
|
JSFILES = root/js/solardash.file.js root/js/solardash.https.js |
|
|
|
|
|
|
|
|
THIRDPARTYJS = root/js/jquery.js root/js/highstock.js |
|
|
THIRDPARTYJS = root/js/jquery.js root/js/highstock.js |
|
|
@@ -26,3 +32,12 @@ all: $(JSFILES) |
|
|
|
|
|
|
|
|
keepupdate: |
|
|
keepupdate: |
|
|
find . -name '*.js' -o -name '*.jspp' | entr make all |
|
|
find . -name '*.js' -o -name '*.jspp' | entr make all |
|
|
|
|
|
|
|
|
|
|
|
test: |
|
|
|
|
|
(ls $(FILES) $(JSFILES) | entr sh -c 'make all && python -m coverage run -m unittest $(PROJNAME) && coverage report --omit=p/\* -m -i') |
|
|
|
|
|
|
|
|
|
|
|
test-noentr: |
|
|
|
|
|
python -m coverage run -m unittest $(PROJNAME) && coverage report --omit=p/\* -m -i |
|
|
|
|
|
|
|
|
|
|
|
env: |
|
|
|
|
|
($(VIRTUALENV) $(VIRTUALENVARGS) p && . ./p/bin/activate && pip install -r requirements.txt) |