summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/include.mk b/include.mk
index ca126b4..8542449 100644
--- a/include.mk
+++ b/include.mk
@@ -166,4 +166,10 @@ run:
$(call $(PROG)/$@,)
reset:
- @$(RESET_FUNC)
+ @if [ -n "$(RESET_FUNC)" ]; then \
+ if [ -x "$(RESET_FUNC)" ]; then \
+ "$(RESET_FUNC)"; \
+ else \
+ echo "WARNING: ignoring non-existing or non-executable reset script"; \
+ fi \
+ fi