Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add a dist-files target to all makefiles. It outputs all files which must be placed...
[simgrid.git] / acmacro / dist-files.mk
diff --git a/acmacro/dist-files.mk b/acmacro/dist-files.mk
new file mode 100644 (file)
index 0000000..419574b
--- /dev/null
@@ -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