diff options
author | paltherr <paltherr@epfl.ch> | 2003-05-05 14:38:41 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2003-05-05 14:38:41 +0000 |
commit | 49a63cbfb4cef451642287b6062fdaf709340949 (patch) | |
tree | 8a4bbfca3578c4322fa8289b37278d8e1a01ccfd /support/make | |
parent | 42fe3b7da729cc65595d25aa7da5df3538c5d4e8 (diff) | |
download | scala-49a63cbfb4cef451642287b6062fdaf709340949.tar.gz scala-49a63cbfb4cef451642287b6062fdaf709340949.tar.bz2 scala-49a63cbfb4cef451642287b6062fdaf709340949.zip |
- Added cygwin.mk
Diffstat (limited to 'support/make')
-rw-r--r-- | support/make/cygwin.mk | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/support/make/cygwin.mk b/support/make/cygwin.mk new file mode 100644 index 0000000000..2fc301ea09 --- /dev/null +++ b/support/make/cygwin.mk @@ -0,0 +1,32 @@ +############################################################-*-Makefile-*-#### +# CYGWIN - Cygwin Support +############################################################################## +# $Id$ + +############################################################################## +# Exports +# +# CYGWIN_TEST : a variable that is non-empty under cygwin +# CYGWIN_PATH : a function that converts file paths +# CYGWIN_FILE : a function that converts file names +# +############################################################################## + +############################################################################## +# Defaults + +UNAME ?= uname +CYGPATH ?= cygpath + +############################################################################## +# Values + +CYGWIN_TEST = $(filter CYGWIN%,$(shell $(UNAME))) + +############################################################################## +# Functions + +CYGWIN_PATH = $(if $(CYGWIN_TEST),`$(CYGPATH) -w -p $(1)`,$(1)) +CYGWIN_FILE = $(if $(CYGWIN_TEST),`$(CYGPATH) -w $(1)`,$(1)) + +############################################################################## |