Makefile 754 B

1234567891011121314151617181920212223
  1. CONFIGDIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
  2. ENTITY_SEED := $(CONFIGDIR)../../../examples/solutions/single-button-toggle/water_valve.yaml
  3. # The screenshot config reads and writes this fixture, so captures never touch
  4. # a real /etc/OliveTin install.
  5. export WATER_VALVE_ENTITY_FILE := $(CONFIGDIR)water_valve.yaml
  6. include ../../screenshots.mk
  7. start: seed-entity seed-icons
  8. .DEFAULT_GOAL := screenshots
  9. .PHONY: screenshots seed-entity seed-icons
  10. seed-entity:
  11. cp "$(ENTITY_SEED)" "$(WATER_VALVE_ENTITY_FILE)"
  12. screenshots: update-screenshots
  13. # OliveTin serves the action icons from custom-webui/ next to config.yaml.
  14. seed-icons:
  15. mkdir -p "$(CONFIGDIR)custom-webui/icons"
  16. cp "$(CONFIGDIR)icons/"*.png "$(CONFIGDIR)custom-webui/icons/"