diff options
| author | Ryan Pavlik <rpavlik@iastate.edu> | 2012-07-05 13:59:12 -0500 |
|---|---|---|
| committer | Ryan Pavlik <rpavlik@iastate.edu> | 2012-07-05 13:59:12 -0500 |
| commit | 49cca1da1161ce909c1d28a95a7e48084cdfc871 (patch) | |
| tree | 9266ae11c8d2859578546fe1d07f9bc130633983 /arduino-mk/Arduino.mk | |
| parent | 1f1f43822787985e4de308949f14f9314cedb05e (diff) | |
Less shell-based implementation of dir_if_exists
Diffstat (limited to 'arduino-mk/Arduino.mk')
| -rw-r--r-- | arduino-mk/Arduino.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arduino-mk/Arduino.mk b/arduino-mk/Arduino.mk index e8c5f56..4a020bc 100644 --- a/arduino-mk/Arduino.mk +++ b/arduino-mk/Arduino.mk @@ -244,11 +244,11 @@ # ######################################################################## -dir_if_exists = $(shell test -e $(1)$(2) && echo $(1) || true) # Useful functions # Returns the first argument (typically a directory), if the file or directory # named by concatenating the first and optionally second argument # (directory and optional filename) exists +dir_if_exists = $(if $(wildcard $(1)$(2)),$(1)) # For message printing: pad the right side of the first argument with spaces to # the number of bytes indicated by the second argument. |
