From 3ac8124e5fcee52dc950d676fda4a219408ea8a6 Mon Sep 17 00:00:00 2001 From: mquinson Date: Sun, 27 Feb 2005 23:18:02 +0000 Subject: [PATCH] Add a dist-files target to all makefiles. It outputs all files which must be placed into the tarball git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1082 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- acmacro/dist-files.mk | 9 +++++++++ doc/Makefile.am | 2 ++ examples/Makefile.am | 2 ++ examples/gras/Makefile.am | 2 ++ examples/gras/chrono/Makefile.am | 1 + examples/gras/ping/Makefile.am | 1 + examples/gras/timer/Makefile.am | 1 + examples/msg/Makefile.am | 1 + include/Makefile.am | 2 ++ src/Makefile.am | 3 +++ src/amok/Makefile.am | 1 + testsuite/Makefile.am | 2 ++ tools/Makefile.am | 1 + tools/gras/Makefile.am | 2 ++ 14 files changed, 30 insertions(+) create mode 100644 acmacro/dist-files.mk diff --git a/acmacro/dist-files.mk b/acmacro/dist-files.mk new file mode 100644 index 0000000000..419574b5f2 --- /dev/null +++ b/acmacro/dist-files.mk @@ -0,0 +1,9 @@ +# Makefile chunk which allows to display the files which should be included +# into the distribution. + +# It is intended to be included in all Makefile.am + +dist-files: + @for n in $(DISTFILES) ; do echo $(SRCFILE)$$n; done + @echo + @for n in $(DIST_SUBDIRS) ; do if [ x$$n != x. ] ; then $(MAKE) -C $$n dist-files SRCFILE=$(SRCFILE)$$n/ ; fi; done diff --git a/doc/Makefile.am b/doc/Makefile.am index ea6e5559d3..5fd9ece7f2 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -57,3 +57,5 @@ uninstall-local: done .PHONY: html + +include $(top_srcdir)/acmacro/dist-files.mk diff --git a/examples/Makefile.am b/examples/Makefile.am index c20f8da448..94ae9756f7 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -1,2 +1,4 @@ SUBDIRS=msg gras # ping bandwidth alnem saturate EXTRA_DIST= modules.doc + +include $(top_srcdir)/acmacro/dist-files.mk diff --git a/examples/gras/Makefile.am b/examples/gras/Makefile.am index 1d5ab97cb7..6e912ff211 100644 --- a/examples/gras/Makefile.am +++ b/examples/gras/Makefile.am @@ -1 +1,3 @@ SUBDIRS= ping timer chrono # bandwidth alnem saturate + +include $(top_srcdir)/acmacro/dist-files.mk diff --git a/examples/gras/chrono/Makefile.am b/examples/gras/chrono/Makefile.am index 0cf0a9c6ab..a9233c11a0 100644 --- a/examples/gras/chrono/Makefile.am +++ b/examples/gras/chrono/Makefile.am @@ -22,3 +22,4 @@ CLEANFILES= _chrono_simulator.c _chrono_multiplier.c _chrono_multiplier.c _chrono_simulator.c: chrono_deployment.xml $(top_srcdir)/tools/gras/gras_stub_generator $(top_srcdir)/tools/gras/gras_stub_generator chrono chrono_deployment.xml >/dev/null +include $(top_srcdir)/acmacro/dist-files.mk diff --git a/examples/gras/ping/Makefile.am b/examples/gras/ping/Makefile.am index 7253f527ca..8cecdd2b8d 100644 --- a/examples/gras/ping/Makefile.am +++ b/examples/gras/ping/Makefile.am @@ -25,3 +25,4 @@ PROCESSES= client server $(foreach proc, $(PROCESSES), _$(NAME)_$(proc).c) _ping_simulator.c: $(srcdir)/ping_deployment.xml $(top_srcdir)/tools/gras/gras_stub_generator $(top_srcdir)/tools/gras/gras_stub_generator ping ping_deployment.xml >/dev/null +include $(top_srcdir)/acmacro/dist-files.mk diff --git a/examples/gras/timer/Makefile.am b/examples/gras/timer/Makefile.am index d909385190..3b90502ef9 100644 --- a/examples/gras/timer/Makefile.am +++ b/examples/gras/timer/Makefile.am @@ -23,3 +23,4 @@ MAINTAINERCLEANFILES = _$(NAME)_simulator.c _$(NAME)_client.c _$(NAME)_server.c $(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 +include $(top_srcdir)/acmacro/dist-files.mk diff --git a/examples/msg/Makefile.am b/examples/msg/Makefile.am index 93c96af58b..bac31a682a 100644 --- a/examples/msg/Makefile.am +++ b/examples/msg/Makefile.am @@ -8,3 +8,4 @@ check_PROGRAMS=msg_test msg_test_SOURCES= messages.h msg_test.c msg_test_LDADD= $(top_builddir)/src/libsimgrid.la +include $(top_srcdir)/acmacro/dist-files.mk diff --git a/include/Makefile.am b/include/Makefile.am index ae6403b8e4..15c86358ab 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -21,3 +21,5 @@ nobase_include_HEADERS = \ \ amok/base.h \ amok/bandwidth.h + +include $(top_srcdir)/acmacro/dist-files.mk diff --git a/src/Makefile.am b/src/Makefile.am index a088abf745..6662a0f235 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -172,3 +172,6 @@ libgras_la_LDFLAGS = $(VERSION_INFO) @GRAS_DEP@ -lm libsimgrid_la_SOURCES= $(COMMON_SRC) $(SG_SRC) libsimgrid_la_LDFLAGS = $(VERSION_INFO) @SIMGRID_DEP@ -lm + + +include $(top_srcdir)/acmacro/dist-files.mk diff --git a/src/amok/Makefile.am b/src/amok/Makefile.am index 87a9fd4ee2..7776abbe47 100644 --- a/src/amok/Makefile.am +++ b/src/amok/Makefile.am @@ -12,4 +12,5 @@ libamok_la_SOURCES= \ VERSION_INFO= -release 20040722 -version-info 0:0:0 +include $(top_srcdir)/acmacro/dist-files.mk diff --git a/testsuite/Makefile.am b/testsuite/Makefile.am index 3edc2e3ca0..93da8f04a8 100644 --- a/testsuite/Makefile.am +++ b/testsuite/Makefile.am @@ -90,3 +90,5 @@ gras_datadesc_usage_LDADD= $(LDADD_RL) gras/datadesc_structs.c: gras/mk_datadesc_structs.pl cd gras ; perl mk_datadesc_structs.pl > datadesc_structs.c + +include $(top_srcdir)/acmacro/dist-files.mk diff --git a/tools/Makefile.am b/tools/Makefile.am index 87fe9b3108..cd23468f31 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -1,2 +1,3 @@ SUBDIRS=gras +include $(top_srcdir)/acmacro/dist-files.mk diff --git a/tools/gras/Makefile.am b/tools/gras/Makefile.am index 78aa2eb639..be33e5f144 100644 --- a/tools/gras/Makefile.am +++ b/tools/gras/Makefile.am @@ -9,3 +9,5 @@ LDADD_RL= $(top_builddir)/src/libsimgrid.la gras_stub_generator_SOURCES = stub_generator.c gras_stub_generator_LDADD = $(LDADD_UTILS) + +include $(top_srcdir)/acmacro/dist-files.mk -- 2.20.1