-# jikes has a special target to autodetect a pre-installed jikes, and to autodetect the JVM's $CLASSPATH
-.jikes:
- @echo -e "\n\033[1mdetecting your jikes installation...\033[0m"
- echo "#!/bin/sh" > .jikes
- echo -n 'PATH=upstream/install/bin:$$PATH jikes -classpath lib/libgcj-minimal.jar:build/class $$@ -d build/class/ -sourcepath build/java/:upstream/mips:upstream/mips/build:src ' >> .jikes
- (type jikes && (jikes --version | grep "Version 1.18")) || make .install_jikes-1.18_ target=
- echo -n "$(jikes_flags) -bootclasspath " >> .jikes
- echo "public class GetBootClassPath { public static void main(String[] s) { " > GetBootClassPath.java
- echo "System.out.println(System.getProperty(\"sun.boot.class.path\")); } }" >> GetBootClassPath.java
- javac GetBootClassPath.java
- java -cp . GetBootClassPath >> .jikes
- rm GetBootClassPath.*
- echo 'EXIT=$$?' >> .jikes
- echo 'exit $$EXIT' >> .jikes
- mv .jikes .jikes+
- cp .jikes+ .jikes
- chmod +x .jikes