Mercurial > hg > truffle
comparison make/linux/makefiles/buildtree.make @ 232:551f4309f476
6695777: Queens.class should be built from source, not put in source repo
Reviewed-by: kvn
author | ohair |
---|---|
date | Thu, 03 Jul 2008 10:46:50 -0700 |
parents | a294fd0c4b38 |
children | b21425229e0b |
comparison
equal
deleted
inserted
replaced
231:72c3e8693c9a | 232:551f4309f476 |
---|---|
326 JAVA_FLAG/64 = -d64 | 326 JAVA_FLAG/64 = -d64 |
327 | 327 |
328 WRONG_DATA_MODE_MSG = \ | 328 WRONG_DATA_MODE_MSG = \ |
329 echo "JAVA_HOME must point to $(DATA_MODE)bit JDK." | 329 echo "JAVA_HOME must point to $(DATA_MODE)bit JDK." |
330 | 330 |
331 test_gamma: $(BUILDTREE_MAKE) | 331 test_gamma: $(BUILDTREE_MAKE) $(GAMMADIR)/make/test/Queens.java |
332 @echo Creating $@ ... | 332 @echo Creating $@ ... |
333 $(QUIETLY) ( \ | 333 $(QUIETLY) ( \ |
334 echo '#!/bin/sh'; \ | 334 echo '#!/bin/sh'; \ |
335 $(BUILDTREE_COMMENT); \ | 335 $(BUILDTREE_COMMENT); \ |
336 echo '. ./env.sh'; \ | 336 echo '. ./env.sh'; \ |
337 echo "if [ -z \$$JAVA_HOME ]; then { $(NO_JAVA_HOME_MSG); exit 0; }; fi"; \ | 337 echo "if [ -z \$$JAVA_HOME ]; then { $(NO_JAVA_HOME_MSG); exit 0; }; fi"; \ |
338 echo "if ! \$${JAVA_HOME}/bin/java $(JAVA_FLAG) -fullversion 2>1 > /dev/null"; \ | 338 echo "if ! \$${JAVA_HOME}/bin/java $(JAVA_FLAG) -fullversion 2>1 > /dev/null"; \ |
339 echo "then"; \ | 339 echo "then"; \ |
340 echo " $(WRONG_DATA_MODE_MSG); exit 0;"; \ | 340 echo " $(WRONG_DATA_MODE_MSG); exit 0;"; \ |
341 echo "fi"; \ | 341 echo "fi"; \ |
342 echo 'CLASSPATH="$(GAMMADIR)/make/$(OS_FAMILY):$$CLASSPATH"'; \ | 342 echo "rm -f Queens.class"; \ |
343 echo "\$${JAVA_HOME}/bin/javac -d . $(GAMMADIR)/make/test/Queens.java"; \ | |
343 echo '[ -f gamma_g ] && { gamma=gamma_g; }'; \ | 344 echo '[ -f gamma_g ] && { gamma=gamma_g; }'; \ |
344 echo './$${gamma:-gamma} $(TESTFLAGS) Queens < /dev/null'; \ | 345 echo './$${gamma:-gamma} $(TESTFLAGS) Queens < /dev/null'; \ |
345 ) > $@ | 346 ) > $@ |
346 $(QUIETLY) chmod +x $@ | 347 $(QUIETLY) chmod +x $@ |
347 | 348 |