Skip to content

Commit cff1dec

Browse files
committed
Add a new target help_vars
This target can display all variables that can be overridden
1 parent e8634fb commit cff1dec

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Arduino.mk

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1184,7 +1184,7 @@ size: $(TARGET_HEX)
11841184
$(call avr_size,$(TARGET_ELF),$(TARGET_HEX))
11851185

11861186
show_boards:
1187-
@cat $(BOARDS_TXT) | grep -E "^[[:alnum:]]" | cut -d . -f 1 | uniq
1187+
@$(CAT) $(BOARDS_TXT) | grep -E "^[[:alnum:]]" | cut -d . -f 1 | uniq
11881188

11891189
monitor:
11901190
$(MONITOR_CMD) $(call get_monitor_port) $(MONITOR_BAUDRATE)
@@ -1208,6 +1208,9 @@ generate_assembly: $(OBJDIR)/$(TARGET).s
12081208
generated_assembly: generate_assembly
12091209
@$(ECHO) "\"generated_assembly\" target is deprecated. Use \"generate_assembly\" target instead"
12101210

1211+
help_vars:
1212+
@$(CAT) $(ARDMK_DIR)/arduino-mk-vars.md
1213+
12111214
help:
12121215
@$(ECHO) "\nAvailable targets:\n\
12131216
make - no upload\n\
@@ -1229,6 +1232,7 @@ help:
12291232
make raw_eeprom - upload the eep file without first resetting\n\
12301233
make burn_bootloader - burn bootloader and fuses\n\
12311234
make set_fuses - set fuses without burning bootloader\n\
1235+
make help_vars - print all variables that can be overridden\n\
12321236
make help - show this help\n\
12331237
"
12341238
@$(ECHO) "Please refer to $(ARDMK_DIR)/Arduino.mk for more details.\n"

HISTORY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ I tried to give credit whenever possible. If I have missed anyone, kindly add it
77
### 1.3.1 (2014-02-01)
88
- Fix: BUNDLED_AVR_TOOLS_DIR is now set properly when using only arduino-core and not the whole arduino package. (https://github.com/sej7278)
99
- New: Document all variables that can be overridden. (https://github.com/sej7278)
10+
- New: Add a new `help_vars` target to display information about variables that can be overridden.
1011

1112
### 1.3.0 (2014-01-29)
1213
- Fix: Use more reliable serial device naming in Windows. Fix issue #139 and #155 (https://github.com/peplin)

0 commit comments

Comments
 (0)