2 @echo "Now you can run './configure'"
13 dist: VER=$(shell git describe --match='v*' | sed -e 's/^v\(.*\)/\1/')
15 # Export clean sources and run autoreconf
17 git archive --format=tar --prefix=orte-$(VER)/ HEAD | tar x
18 make -C orte-$(VER) -f Makefile.cvs
19 rm -rf orte-$(VER)/autom4te.cache
20 # Export sources again for building of documentation and copy generated orte manual to release dir
21 test ! -d orte-$(VER)-doc
22 git archive --format=tar --prefix=orte-$(VER)-doc/ HEAD | tar x
23 make -C orte-$(VER)-doc/doc
24 cp orte-$(VER)-doc/doc/orteman.pdf orte-$(VER)/doc
25 rm -rf orte-$(VER)-doc
27 tar czf orte-$(VER).tar.gz orte-$(VER)
28 # Check that we can compile the content of the tarball
29 cd orte-$(VER) && ./configure && make
32 @echo "Tarball stored as orte-$(VER).tar.gz"