60 lines
1.4 KiB
Makefile
60 lines
1.4 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:
|
|
src/decimate.py
|
|
|
|
test_insert:
|
|
@make install >/dev/null
|
|
src/insert.py --file --dry-run /test/foo </dev/null
|
|
|
|
test_copy:
|
|
@make install >/dev/null
|
|
src/copy_wildcard.py -U "http://nilmdb.com/bucket/" -D /lees*
|
|
|
|
test_prep:
|
|
@make install >/dev/null
|
|
src/prep.py -c 3 \
|
|
/lees-compressor/no-leak/raw \
|
|
/lees-compressor/no-leak/sinefit \
|
|
/lees-compressor/no-leak/prep \
|
|
-s '2013-02-19 18:00:00' \
|
|
-r 0
|
|
|
|
test_decimate:
|
|
-@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
|