Skip to content

Instantly share code, notes, and snippets.

@excavador
Created June 25, 2017 12:14
Show Gist options
  • Save excavador/9992ab2053f58b00a06eb8699793de9e to your computer and use it in GitHub Desktop.
Save excavador/9992ab2053f58b00a06eb8699793de9e to your computer and use it in GitHub Desktop.
mode=backend
previous_mode := $(shell cat bin/mode.settings || echo "")
ifeq ($(previous_mode),$(mode))
mode-changed:
restart-if-necessary:
else
restart-if-necessary:
@echo "do restart stuff"
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment