Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Clean clean clean
[simgrid.git] / examples / gras / timer / Makefile.am
index d909385..21e9e32 100644 (file)
@@ -16,10 +16,17 @@ timer_client_SOURCES=       _timer_client.c timer.c
 timer_client_LDADD=    $(top_builddir)/src/libgras.la
 
 # cleanup temps
-MAINTAINERCLEANFILES = _$(NAME)_simulator.c _$(NAME)_client.c _$(NAME)_server.c 
+CLEANFILES = _$(NAME)_simulator.c _$(NAME)_client.c _$(NAME)_server.c \
+             $(NAME).Makefile.local $(NAME).Makefile.remote $(NAME).deploy.sh 
+
+MOSTLYCLEANFILES = $(NAME).trace
 
 # generate temps
 
-$(foreach proc, $(PROCESSES), _$(NAME)_$(proc).c) _$(NAME)_simulator.c: $(srcdir)/$(NAME)_deployment.xml $(top_srcdir)/tools/gras/gras_stub_generator
-       $(top_srcdir)/tools/gras/gras_stub_generator $(NAME) $(NAME)_deployment.xml >/dev/null
+$(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 $(NAME) $(srcdir)/$(NAME)_deployment.xml >/dev/null
+
+../../../tools/gras/gras_stub_generator@EXEEXT@:
+       make -C   ../../../tools/gras/ gras_stub_generator@EXEEXT@
 
+include $(top_srcdir)/acmacro/dist-files.mk