From 4e8374a5ef66cc4de33d82c21db1ddd6c1b524b3 Mon Sep 17 00:00:00 2001 From: mquinson Date: Thu, 23 Jun 2005 15:12:03 +0000 Subject: [PATCH 1/1] put the parts common to each gras/amok example in one file and load it from the other places git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1393 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- examples/temps-gras-stub.mk | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 examples/temps-gras-stub.mk diff --git a/examples/temps-gras-stub.mk b/examples/temps-gras-stub.mk new file mode 100644 index 0000000000..17ed4ec2cf --- /dev/null +++ b/examples/temps-gras-stub.mk @@ -0,0 +1,15 @@ +## Generate the temp source files on need +## + +$(foreach proc, $(PROCESSES), _$(NAME)_$(proc).c) _$(NAME)_simulator.c: $(srcdir)/$(NAME)_deployment.xml ../../../tools/gras/gras_stub_generator@EXEEXT@ + [ x@EXEEXT@ = x ] || exenv=wine; $$exenv ../../../tools/gras/gras_stub_generator@EXEEXT@ $(NAME) $(srcdir)/$(NAME)_deployment.xml >/dev/null + +../../../tools/gras/gras_stub_generator@EXEEXT@: + make -C ../../../tools/gras/ gras_stub_generator@EXEEXT@ + +## +## Cleanups +CLEANFILES = _$(NAME)_simulator.c $(NAME).Makefile.local $(NAME).Makefile.remote $(NAME).deploy.sh \ + $(foreach proc, $(PROCESSES), _$(NAME)_$(proc).c) + +MOSTLYCLEANFILES = $(NAME).trace -- 2.20.1