Solar Array and home energy dashboard.
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.
 
 
 
 
 

24 lines
525 B

  1. .PHONY: all
  2. .SUFFIXES: .jspp .js
  3. JSFILES = root/js/solardash.file.js
  4. THIRDPARTYJS = root/js/jquery.js root/js/highcharts.js
  5. root/js/jquery.js:
  6. wget -O $@ "https://code.jquery.com/jquery-3.4.1.min.js"
  7. root/js/highcharts.js:
  8. wget -O $@ "https://code.highcharts.com/8.0.0/highcharts.js"
  9. # manual deps
  10. root/js/solardash.file.js: root/js/solardash.base.js $(THIRDPARTYJS)
  11. all: $(JSFILES)
  12. .jspp.js:
  13. cpp -Wno-invalid-pp-token -E $< | sed -e '/^#/d' > $@
  14. keepupdate:
  15. find . -name '*.js' -o -name '*.jspp' | entr make all