aboutsummaryrefslogtreecommitdiff
path: root/arduino-mk-vars.md
diff options
context:
space:
mode:
authorJulien Ridoux <julien@synclab.org>2014-03-14 10:42:35 +1100
committerSudar <sudar@sudarmuthu.com>2014-03-20 11:17:14 -0700
commitffde764adaa56cf00296857c8fd4a821b6b2e506 (patch)
tree0913ea822e05d9ac92c91195073edd1c3bdeefae /arduino-mk-vars.md
parent64e90740424226418b2a16a4a241f64c05827664 (diff)
Add phony target to run pre-build hook script
Fix #176
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