Makefile.in 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. all: %%PROM_GROUPS_PREFIX%%.prom dashboard
  2. %%PROM_GROUPS_PREFIX%%.prom: groups.prom.in
  3. ../conf/substitute.sh $> $@
  4. dashboard: %%DASHBOARD_PREFIX%%status.json %%DASHBOARD_PREFIX%%status-render.json %%DASHBOARD_PREFIX%%status-group.json %%DASHBOARD_PREFIX%%status-group-render.json
  5. %%DASHBOARD_PREFIX%%status.json: status.json.in
  6. ../conf/substitute.sh $> $@
  7. %%DASHBOARD_PREFIX%%status-render.json: status-render.json.in
  8. ../conf/substitute.sh $> $@
  9. %%DASHBOARD_PREFIX%%status-group.json: status-group.json.in
  10. ../conf/substitute.sh $> $@
  11. %%DASHBOARD_PREFIX%%status-group-render.json: status-group-render.json.in
  12. ../conf/substitute.sh $> $@
  13. install: %%EXPORT_DIR%%/%%PROM_GROUPS_PREFIX%%.prom %%DASHBOARD_DIR%% %%DASHBOARD_DIR%%/%%DASHBOARD_PREFIX%%status.json %%DASHBOARD_DIR%%/%%DASHBOARD_PREFIX%%status-render.json %%DASHBOARD_DIR%%/%%DASHBOARD_PREFIX%%status-group.json %%DASHBOARD_DIR%%/%%DASHBOARD_PREFIX%%status-group-render.json
  14. %%DASHBOARD_DIR%%:
  15. %%DASHBOARD_DIR_CMD%% $@
  16. %%EXPORT_DIR%%/%%PROM_GROUPS_PREFIX%%.prom: %%PROM_GROUPS_PREFIX%%.prom
  17. %%INSTALL_DATA_CMD%% $> $@
  18. %%DASHBOARD_DIR%%/%%DASHBOARD_PREFIX%%status.json: %%DASHBOARD_PREFIX%%status.json
  19. %%INSTALL_DATA_CMD%% $> $@
  20. %%DASHBOARD_DIR%%/%%DASHBOARD_PREFIX%%status-render.json: %%DASHBOARD_PREFIX%%status-render.json
  21. %%INSTALL_DATA_CMD%% $> $@
  22. %%DASHBOARD_DIR%%/%%DASHBOARD_PREFIX%%status-group.json: %%DASHBOARD_PREFIX%%status-group.json
  23. %%INSTALL_DATA_CMD%% $> $@
  24. %%DASHBOARD_DIR%%/%%DASHBOARD_PREFIX%%status-group-render.json: %%DASHBOARD_PREFIX%%status-group-render.json
  25. %%INSTALL_DATA_CMD%% $> $@
  26. clean:
  27. rm -f %%PROM_GROUPS_PREFIX%%.prom
  28. rm -f %%DASHBOARD_PREFIX%%status.json
  29. rm -f %%DASHBOARD_PREFIX%%status-render.json
  30. rm -f %%DASHBOARD_PREFIX%%status-group.json
  31. rm -f %%DASHBOARD_PREFIX%%status-group-render.json