toolsandutils/buildsystem/shell/sh.mk
branchGCC_SURGE
changeset 55 59148e28d9f6
parent 0 83f4b4db085c
--- a/toolsandutils/buildsystem/shell/sh.mk	Wed Jun 23 15:48:26 2010 +0100
+++ b/toolsandutils/buildsystem/shell/sh.mk	Fri Jun 25 18:24:47 2010 +0100
@@ -113,5 +113,15 @@
 -$(ERASE) -f $(1)
 endef
 
+# Macro to execute a command if a file exists.
+define ifexistf
+if [ -f $(1) ]; then $(2); fi
+endef
+
+# Macro ensure path delimiters are the right sort.
+define normalise_path
+$(subst \,/,$(1))
+endef
+
 # Configuration needs to be returned as upper case for abld
 CONFIGURATION:=rel