branch | GCC_SURGE |
changeset 55 | 59148e28d9f6 |
parent 0 | 83f4b4db085c |
--- a/toolsandutils/buildsystem/shell/cmd.mk Wed Jun 23 15:48:26 2010 +0100 +++ b/toolsandutils/buildsystem/shell/cmd.mk Fri Jun 25 18:24:47 2010 +0100 @@ -132,5 +132,16 @@ 1 endef +# Macro to execute a command if a file exists. +define ifexistf +if exist $(1) $(2) +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