summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2003-02-17 12:32:54 +0000
committerpaltherr <paltherr@epfl.ch>2003-02-17 12:32:54 +0000
commit672f97063137767359641f9bc1fb3c49315add3b (patch)
treeff185b89632e486fd980029ef8fff91e96ab0137 /Makefile
parent04e7b8d053f6bc3a6de69919e6789feffeb6c33b (diff)
downloadscala-672f97063137767359641f9bc1fb3c49315add3b.tar.gz
scala-672f97063137767359641f9bc1fb3c49315add3b.tar.bz2
scala-672f97063137767359641f9bc1fb3c49315add3b.zip
- Added rules to create the links to the scala ...
- Added rules to create the links to the scala wrapper
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index aaa7ff40f6..7479f1a1d3 100644
--- a/Makefile
+++ b/Makefile
@@ -22,6 +22,17 @@ PROJECT_CLASSPATH = $(PROJECT_OUTPUTDIR)
PROJECT_LISTDIR = $(PROJECT_ROOT)/config/list
PROJECT_SOURCEDIR = $(PROJECT_ROOT)/sources
+# scala scripts wrapper
+SCRIPTS_PREFIX = $(PROJECT_ROOT)/bin
+SCRIPTS_WRAPPER_NAME = .scala_wrapper
+SCRIPTS_WRAPPER_LINKS += $(SCRIPTS_WRAPPER_ALIASES:%=$(SCRIPTS_PREFIX)/%)
+SCRIPTS_WRAPPER_ALIASES += socos
+SCRIPTS_WRAPPER_ALIASES += socos-debug
+SCRIPTS_WRAPPER_ALIASES += siris
+SCRIPTS_WRAPPER_ALIASES += siris-debug
+SCRIPTS_WRAPPER_ALIASES += surus
+SCRIPTS_WRAPPER_ALIASES += surus-debug
+
# scala compiler
COMPILER_ROOT = $(PROJECT_SOURCEDIR)/scalac
COMPILER_LIST = $(call READLIST,$(PROJECT_LISTDIR)/compiler.lst)
@@ -90,6 +101,7 @@ make += $(MAKE) MAKELEVEL=$(MAKELEVEL) --no-print-directory
##############################################################################
# Commands
+all : scripts
all : compiler
force :
@@ -102,13 +114,16 @@ clean :
distclean : clean
$(RM) -f .latest-*
+ $(RM) -f $(SCRIPTS_WRAPPER_LINKS)
+scripts : $(SCRIPTS_WRAPPER_LINKS)
compiler : .latest-compiler
.PHONY : all
.PHONY : force
.PHONY : clean
.PHONY : distclean
+.PHONY : scripts
.PHONY : compiler
##############################################################################
@@ -119,6 +134,13 @@ compiler : .latest-compiler
touch $@
##############################################################################
+# Rules
+
+$(SCRIPTS_WRAPPER_LINKS):
+ $(LN) -s $(SCRIPTS_WRAPPER_NAME) $@;
+
+
+##############################################################################
include $(ROOT)/support/make/exec.mk
include $(ROOT)/support/make/grep.mk