[m-rev.] trivial diff: set-up java directory when building the compiler

Michael Wybrow mjwybrow at students.cs.mu.oz.au
Fri Feb 22 12:31:55 AEDT 2002



===================================================================

Estimated hours taken: 0.5
Branches: main


mercury/java/Makefile:
	Renamed to `Mmakefile'.

mercury/Mmakefile:
	Invoke mmake in the mercury/java directory to create symbolic
	links for java class directories at build time.


Index: Mmakefile
===================================================================
RCS file: /home/mercury1/repository/mercury/Mmakefile,v
retrieving revision 1.71
diff -u -r1.71 Mmakefile
--- Mmakefile	2 Oct 2001 00:47:40 -0000	1.71
+++ Mmakefile	22 Feb 2002 00:58:48 -0000
@@ -31,6 +31,7 @@
 		trace \
 		browser \
 		compiler \
+		java \
 		doc \
 		profiler \
 		deep_profiler
@@ -156,6 +157,10 @@
 .PHONY: compiler
 compiler: dep_compiler scripts util boehm_gc runtime library browser trace
 	+cd compiler && $(SUBDIR_MMAKE)
+
+.PHONY: java
+java:
+	+cd java && $(SUBDIR_MMAKE)
 
 .PHONY: libmmc
 libmmc: dep_compiler scripts util boehm_gc runtime library browser trace
Index: java/Makefile
===================================================================
RCS file: java/Makefile
diff -N java/Makefile
--- java/Makefile	11 Feb 2002 06:31:18 -0000	1.1
+++ /dev/null	1 Jan 1970 00:00:00 -0000
@@ -1,26 +0,0 @@
-
-# Copyright (C) 2002 The University of Melbourne.
-# This file may only be copied under the terms of the GNU Library General
-# Public License - see the file COPYING.LIB in the Mercury distribution.
-#
-# This Makefile sets up some symbolic links so that for the moment we can just
-# include this directory (mercury/java) in our CLASSPATH to be able to compile
-# some mercury files to java.
-#
-# The files in mercury/java/library are some hacked up versions of parts of
-# the mercury library written in java. These are classes such as mercury.list,
-# which require them to be in the CLASSPATH in a "mercury" directory, hence
-# the first link.
-# 
-# The files in mercury/java/runtime are the mercury runtime classes such as
-# mercury.runtime.MethodPtr. These should be in the CLASSPATH under the 
-# directory "mercury/runtime", hence the second link.
-#
-
-links:		
-		ln -s library mercury
-		(cd library && ln -s ../runtime runtime)
-
-clean:
-		rm -f mercury library/runtime
-
Index: java/Mmakefile
===================================================================
RCS file: java/Mmakefile
diff -N java/Mmakefile
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ java/Mmakefile	22 Feb 2002 00:38:30 -0000
@@ -0,0 +1,32 @@
+
+# Copyright (C) 2002 The University of Melbourne.
+# This file may only be copied under the terms of the GNU Library General
+# Public License - see the file COPYING.LIB in the Mercury distribution.
+#
+# This Makefile sets up some symbolic links so that for the moment we can just
+# include this directory (mercury/java) in our CLASSPATH to be able to compile
+# some mercury files to java.
+#
+# The files in mercury/java/library are some hacked up versions of parts of
+# the mercury library written in java. These are classes such as mercury.list,
+# which require them to be in the CLASSPATH in a "mercury" directory, hence
+# the first link.
+# 
+# The files in mercury/java/runtime are the mercury runtime classes such as
+# mercury.runtime.MethodPtr. These should be in the CLASSPATH under the 
+# directory "mercury/runtime", hence the second link.
+#
+
+
+MAIN_TARGET=links
+
+
+links:		
+		ln -s -f library mercury
+		(cd library && ln -s -f ../runtime runtime)
+
+realclean_local: clean
+
+clean:
+		rm -f mercury library/runtime
+
 



--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list