You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

49 lines
1.3 KiB

  1. URL="http://bucket.mit.edu:8080/nilmdb"
  2. #URL="http://localhost/nilmdb"
  3. all:
  4. ifeq ($(INSIDE_EMACS), t)
  5. @make test
  6. else
  7. @echo "Try 'make install'"
  8. endif
  9. test:
  10. @make install >/dev/null
  11. # nilmtool -u ${URL} destroy /test/foo
  12. # nilmtool -u ${URL} create /test/foo float32_3
  13. # nilmtool -u ${URL} remove /test/foo -s min -e max
  14. python src/sinefit.py \
  15. -u ${URL} -c 4 -f 60 \
  16. /lees-compressor/no-leak/raw/1 /test/foo
  17. test2:
  18. -@nilmtool destroy /lees-compressor/no-leak/raw/4 || true
  19. -@nilmtool destroy /lees-compressor/no-leak/raw/16 || true
  20. -@nilmtool create /lees-compressor/no-leak/raw/4 float32_18 || true
  21. -@nilmtool create /lees-compressor/no-leak/raw/16 float32_18 || true
  22. 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
  23. 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
  24. version:
  25. python setup.py version
  26. dist: sdist
  27. sdist:
  28. python setup.py sdist
  29. install:
  30. python setup.py install
  31. develop:
  32. python setup.py develop
  33. clean::
  34. find . -name '*pyc' | xargs rm -f
  35. rm -rf nilmtools.egg-info/ build/ MANIFEST.in
  36. gitclean::
  37. git clean -dXf
  38. .PHONY: all version dist sdist install clean gitclean