Makefile 827 B

12345678910111213141516171819202122232425262728293031323334
  1. # HTML and JS files
  2. .PATH: ${.CURDIR}/..
  3. HTML_FILES= overview.html averages.html
  4. JS_FILES= Chart.bundle.min.js overview.js averages.js
  5. CSS_FILES= default.css
  6. all:
  7. @echo "Nothing todo..."
  8. obj:
  9. @true
  10. clean:
  11. @echo "Nothing todo..."
  12. install:
  13. .for _html in ${HTML_FILES}
  14. ${INSTALL} -D -o ${WWW_USER} -g ${WWW_GROUP} -m 444 ${_html} ${HTDOCS_PATH}/${_html}
  15. .endfor
  16. ${INSTALL} -d -o ${WWW_USER} -g ${WWW_GROUP} -m 555 ${HTDOCS_ROOT}/js
  17. ${INSTALL} -d -o ${WWW_USER} -g ${WWW_GROUP} -m 555 ${HTDOCS_ROOT}/css
  18. .for _js in ${JS_FILES}
  19. ${INSTALL} -o ${WWW_USER} -g ${WWW_GROUP} -m 444 js/${_js} ${HTDOCS_ROOT}/js/${_js}
  20. .endfor
  21. .for _css in ${CSS_FILES}
  22. ${INSTALL} -o ${WWW_USER} -g ${WWW_GROUP} -m 444 css/${_css} ${HTDOCS_ROOT}/css/${_css}
  23. .endfor
  24. # include site settings
  25. .include "cgiconfig.mk"
  26. .include <bsd.own.mk>