aboutsummaryrefslogtreecommitdiff
path: root/arduino-mk-vars.md
diff options
context:
space:
mode:
Diffstat (limited to 'arduino-mk-vars.md')
-rw-r--r--arduino-mk-vars.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/arduino-mk-vars.md b/arduino-mk-vars.md
index f8eb9a8..51e32ae 100644
--- a/arduino-mk-vars.md
+++ b/arduino-mk-vars.md
@@ -776,6 +776,25 @@ MONITOR_CMD = minicom
----
+### PRE_BUILD_HOOK
+
+**Description:**
+
+Path to shell script to be executed before build. Could be used to automatically
+bump revision number for example.
+
+Defaults to `pre-build-hook.sh`
+
+**Example:**
+
+```Makefile
+PRE_BUILD_HOOK = ~/bin/bump-revision.sh
+```
+
+**Requirement:** *Optional*
+
+----
+
## Avrdude setting variables
### AVRDUDE