nilmtools/Makefile

49 lines
1.3 KiB
Makefile

URL="http://bucket.mit.edu:8080/nilmdb"
#URL="http://localhost/nilmdb"
all:
ifeq ($(INSIDE_EMACS), t)
@make test
else
@echo "Try 'make install'"
endif
test:
@make install >/dev/null
# nilmtool -u ${URL} destroy /test/foo
# nilmtool -u ${URL} create /test/foo float32_3
# nilmtool -u ${URL} remove /test/foo -s min -e max
python src/sinefit.py \
-u ${URL} -c 4 -f 60 \
/lees-compressor/no-leak/raw/1 /test/foo
test2:
-@nilmtool destroy /lees-compressor/no-leak/raw/4 || true
-@nilmtool destroy /lees-compressor/no-leak/raw/16 || true
-@nilmtool create /lees-compressor/no-leak/raw/4 float32_18 || true
-@nilmtool create /lees-compressor/no-leak/raw/16 float32_18 || true
time python src/decimate.py -s '2013-02-04 18:10:00' -e '2013-02-04 18:11:00' /lees-compressor/no-leak/raw/1 /lees-compressor/no-leak/raw/4
python src/decimate.py -s '2013-02-04 18:10:00' -e '2013-02-04 18:11:00' /lees-compressor/no-leak/raw/4 /lees-compressor/no-leak/raw/16
version:
python setup.py version
dist: sdist
sdist:
python setup.py sdist
install:
python setup.py install
develop:
python setup.py develop
clean::
find . -name '*pyc' | xargs rm -f
rm -rf nilmtools.egg-info/ build/ MANIFEST.in
gitclean::
git clean -dXf
.PHONY: all version dist sdist install clean gitclean