X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b13a2e5f15ba5daa7f5ae404476b992e19df2244..42c6459b6f78a6816126ec5aa910d528f9896811:/tools/gras/unix_stub_generator.c?ds=sidebyside diff --git a/tools/gras/unix_stub_generator.c b/tools/gras/unix_stub_generator.c index bce8ab523b..22db9860b1 100644 --- a/tools/gras/unix_stub_generator.c +++ b/tools/gras/unix_stub_generator.c @@ -310,7 +310,7 @@ void generate_makefile_local(char *project, char *deployment) { fprintf(OUT, "# Set the GRAS_ROOT environment variable to the path under which you installed SimGrid\n" "# Compilation will fail if you don't do so\n" - "GRAS_ROOT?= $(shell echo \"\\\"<<<< GRAS_ROOT undefined !!! >>>>\\\"\")\n\n" + "GRAS_ROOT?= $(shell if [ -e /usr/local/lib/libgras.so ] ; then echo /usr/local ; else echo \"\\\"<<<< GRAS_ROOT undefined !!! >>>>\\\"\"; fi)\n\n" "# You can fiddle the following to make it fit your taste\n" "INCLUDES = -I$(GRAS_ROOT)/include\n" "CFLAGS ?= -O3 -w -g\n"