Browse Source

Merge branch 'master' of ssh://git.funkthat.com:822/jmg/solardash

main
John-Mark Gurney 5 years ago
parent
commit
196fc173a1
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      Makefile

+ 7
- 2
Makefile View File

@@ -5,6 +5,11 @@ PROJNAME=solardash
VIRTUALENV ?= virtualenv-3.7
VRITUALENVARGS =

CPP ?= cpp
HOST ?= localhost

RAINEAGLEDATAPREF ?= p/src/raineagle/fixtures/data

FILES=$(PROJNAME)/__init__.py

JSFILES = root/js/solardash.file.js root/js/solardash.https.js root/js/solardash.http.js
@@ -32,7 +37,7 @@ all: $(JSFILES)
run: $(JSFILES)

.jspp.js:
cpp -Wno-invalid-pp-token -E $< | sed -e '/^#/d' > $@ || (rm "$@"; false)
$(CPP) -Wno-invalid-pp-token -E $< | sed -e '/^#/d' > $@ || (rm "$@"; false)

keepupdate:
find . -name '*.js' -o -name '*.jspp' | entr make all
@@ -44,7 +49,7 @@ test-noentr:
python -m coverage run -m unittest $(PROJNAME) && coverage report --omit=p/\* -m -i

run: $(JSFILES)
python -m aiohttp.web -H localhost -P 38382 solardash:getapp p/src/raineagle/fixtures/data
python -m aiohttp.web -H $(HOST) -P 38382 solardash:getapp $(RAINEAGLEDATAPREF)

env:
($(VIRTUALENV) $(VIRTUALENVARGS) p && . ./p/bin/activate && pip install -r requirements.txt)

Loading…
Cancel
Save