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.
 
 
 
 
 

29 lines
884 B

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