aboutsummaryrefslogtreecommitdiff
path: root/arduino-mk/Common.mk
diff options
context:
space:
mode:
authorSimon John <git@the-jedi.co.uk>2014-01-13 11:35:57 +0000
committerSudar <sudar@sudarmuthu.com>2014-01-14 14:23:25 +0530
commitfa6b9215c83e4629b24beb0ca3704b1a3ee3eec1 (patch)
treedaa9223776225bbf0fa9ea87c3c353b912e4a85b /arduino-mk/Common.mk
parent320fec7981b98aae8cfac7adb8e43eaf7aef75c2 (diff)
Move files out of `arduino-mk` subdirectory
fix #152
Diffstat (limited to 'arduino-mk/Common.mk')
-rw-r--r--arduino-mk/Common.mk38
1 files changed, 0 insertions, 38 deletions
diff --git a/arduino-mk/Common.mk b/arduino-mk/Common.mk
deleted file mode 100644
index a94c37f..0000000
--- a/arduino-mk/Common.mk
+++ /dev/null
@@ -1,38 +0,0 @@
-# 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.
-space_pad_to = $(shell echo $(1) " " | head -c$(2))
-
-# Call with some text, and a prefix tag if desired (like [AUTODETECTED]),
-show_config_info = $(call arduino_output,- $(call space_pad_to,$(2),20) $(1))
-
-# Call with the name of the variable, a prefix tag if desired (like [AUTODETECTED]),
-# and an explanation if desired (like (found in $$PATH)
-show_config_variable = $(call show_config_info,$(1) = $($(1)) $(3),$(2))
-
-# Just a nice simple visual separator
-show_separator = $(call arduino_output,-------------------------)
-
-$(call show_separator)
-$(call arduino_output,Arduino.mk Configuration:)
-
-########################################################################
-#
-# Detect OS
-ifeq ($(OS),Windows_NT)
- CURRENT_OS = WINDOWS
-else
- UNAME_S := $(shell uname -s)
- ifeq ($(UNAME_S),Linux)
- CURRENT_OS = LINUX
- endif
- ifeq ($(UNAME_S),Darwin)
- CURRENT_OS = MAC
- endif
-endif
-$(call show_config_variable,CURRENT_OS,[AUTODETECTED])